Home Forums WinForms controls Xceed Grid for WinForms Don’t allow row selection Reply To: Don’t allow row selection

User (Old forums)
Post count: 23064

You could catch the <b>IsSelectedChanged</b> event from the datarowtemplate, and in the event handler, you could check to see if the row can be selected. If the row can’t be selected, deselect it. Something like this:<code>Dim row As Xceed.Grid.Row = sender
If row.IsSelected Then
If row can not be selected Then ‘ fill in the right condition here
row.IsSelected = False
End If
End If</code>

Imported from legacy forums. Posted by Tommy (had 3795 views)