GridGroupingControl: how to highlight the row?

hi,
how to highlight the row or change the row color when i click on any cell of the row? My grid is readonly grid.

Thanks!

4 Replies

AD Administrator Syncfusion Team September 12, 2006 06:44 AM UTC

Hi Lim,

Try setting these properties to highlight the selected record in a grid.

this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.None;
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One;
this.gridGroupingControl1.TableOptions.SelectionBackColor = Color.Blue;
this.gridGroupingControl1.TableOptions.ListBoxSelectionColorOptions = GridListBoxSelectionColorOptions.ApplySelectionColor;

See the below KB Article for selection types in GroupingGrid.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=344

Let me know if you have any further questions.

Regards,
Haneef


AD Administrator Syncfusion Team September 12, 2006 12:05 PM UTC

hi! it''s work fine..
But i had applied a CustomCellType:LinkLabelCellModel(a hyperlink)
in one of my column, the hyperlink is not working now..

Do the Properties caused the problem?

How to solve?

thanks!


AD Administrator Syncfusion Team September 12, 2006 12:30 PM UTC

Hi Lim,

For implementing the link cells in the GridGroupingControl, we have to create a custom class.(LinkLabelCell class) By handling the QueryCellStyleInfo event, we can provide different hyperlinks for different records. Sample attached for further reference of yours.

http://www.syncfusion.com/Support/user/uploads/Q41_21049_aca5b752.zip

Thanks,
Haneef


AD Administrator Syncfusion Team September 15, 2006 02:27 AM UTC

it''s work!

Thanks!

Loader.
Up arrow icon