Hello Team,
We are using Infragistics 8.3 and MS VS 2008. In the infragistics win grid we want to find the particular value of a particular column and set the entrie row to selected.
Is there any way to find the value in the grid and set the row as selected. The value which we are searching is an unique one and we would be searching it in a single column.
Thanks in advance.
Hi,
There's no built-in search functionality in the grid. You would have to loop through the grid rows and examine the row.Cells[column name].Value to find the rowyou want. Once you find the row, you can just set the Selected propery on the row to true. Or maybe set the grid's ActiveRow to the row you want.
I am trying to find the row, its works, but i am unable to select the row or make it active, it moves to the next cell
here is the sample code
Dim CheckValue As StringFor i As Integer = 0 To(grdInvoice.Rows.Count) - 2CheckValue = grdInvoice.Rows(i).Cells(0).Value.ToString
If CheckValue = Item ThengrdInvoice.Rows(i).Cells(0).Selected = TrueMsgBox("Item Already Exists")