I've searched for this in the forums but could not find an answer, can anybody help?
I want to Highlighting a Datagrid Row based on a column value
I've refreshed my DataGrid and now I want to go to the row that contains a specific value.
ie, 2 Columns NAME, ID
1000 rows.
I want to highlight the Row with ID = 700
This does not seem to work:
Code:Dim x As Integer ' ' the count of rows is in the Tag. For x = 0 To CInt(dgMPANS.Tag) - 1 If CType(dgMPANS.Item(x, 1), String) = strSelectedMPAN Then dgMPANS.CurrentCell = New DataGridCell(x, 1) Exit Sub End If Next




Reply With Quote