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.
Have you tried the code given by me ? after the message box try setting the active row and active cell and then write exit for ? let me know how it goes.
i have moved the msgbox right before the exit for.
I can see the activerow selected but after i press ok on the msgbox, it goes back to the next cell of the last row.
Please see the lines in 'Bold, Underline and Italic'
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")
grdInvoice.ActiveRow = grdInvoice.Rows(j)
Exit ForEnd IfNext
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
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.