DataGridView
、列番号、および検索する文字列をフィードでき、検索する列と検索する文字列に基づいてDataGridView
行を選択する必要がありますために。私は以下の基本機能を持っています。ちょうどそれを動作させるコードの塊がありません。思考?型チェックした言語でDataGridViewのC#検索列を選択してその行を選択します
public void dgvSearchSetCurrent(DataGridView oDataGrid, int iCol, string sSearch)
{
if (oDataGrid.RowCount > 0)
{
bool iFound = false;
//Search DG column and set select/set the current row
//missing code here
//if not found, set current row 0
if (iFound == false)
{
oDataGrid.Rows[0].Selected = true;
}
}
}
ハンガリアン記法は、私の目を焼くことができます。 –