I am developing a windows application. i have a datagridview control in this applicaion. now i need to search for a value in this datagridview control. i am populating the value by a dataset in this grid.
search for a value in a Datagridview
Collapse
X
-
string searchString = this.dtToday.Te xt;
foreach (DataGridViewRo w row in grdClientDetail s.Rows)
{
if(row.Cells["Followup Date"].Value.ToString ().Contains(sea rchString ))
{
grdClientDetail s.Rows[row.Index].Selected=true;
break;
}
it is working but, it cant select more than one row at a tome.Comment
Comment