We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Select entire row in gdbg

Hi,
How can I select entire row when I click on it even the clicked cell ?

Thanks
Simon

3 Replies

AD Administrator Syncfusion Team November 7, 2006 10:21 AM UTC

Hi Simon,

Use the Model.Selections property to manages selected ranges in the grid. It allows you to add and remove selections, determines selection state of a specific cell. Try the below code in the CellClick event of the grid.

this.grid1.Model.Selections.Add(GridRangeInfo.Table());

Best Regards,
Haneef


SK Simon Kakon November 7, 2006 01:54 PM UTC

Hi,
Thanks for your answer.

It doesn't work. I want to select only the current row with the current cell included.
IF i try
this.grid1.Model.Selections.Add(GridRangeInfo.Row(row, col))
it doesn't work too.

Thanks

>Hi Simon,

Use the Model.Selections property to manages selected ranges in the grid. It allows you to add and remove selections, determines selection state of a specific cell. Try the below code in the CellClick event of the grid.

this.grid1.Model.Selections.Add(GridRangeInfo.Table());

Best Regards,
Haneef


AD Administrator Syncfusion Team November 8, 2006 04:34 AM UTC

Hi Simon,

Try setting the ListBoxSelectionMode property to SelectionMode.One.

this.grid.ListBoxSelectionMode=SelectionMode.One;

Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon