|
If you can set the ListBoxSelectionMode property, it will select the row when you click on a cell. And the current cell will be active. This means its background will not match the rest of the selected row. To make the current cell look like the rest of the row, subscribe to the TableControlCurrentCellActivating event. In the handler, set e.Inner.ColIndex = 0. This will make the current cell be on the header and not conflict with the rest of the selected row. C# private void gridGroupingControl1_TableControlCurrentCellActivating(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCurrentCellActivatingEventArgs e) { e.Inner.ColIndex = 0; } VB Private Sub gridGroupingControl1_TableControlCurrentCellActivating(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCurrentCellActivatingEventArgs) Handles gridGroupingControl1.TableControlCurrentCellActivating e.Inner.ColIndex = 0 End Sub Sample: http://websamples.syncfusion.com/samples/kb/grid.windows/GGCRowSelection/main.htm |