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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Select entire row in gdbg

Thread ID:

Created:

Updated:

Platform:

Replies:

51496 Nov 7,2006 09:46 AM UTC Nov 8,2006 04:34 AM UTC WinForms 3
loading
Tags: GridControl
Simon Kakon
Asked On November 7, 2006 09:46 AM UTC

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

Thanks
Simon

Administrator [Syncfusion]
Replied On 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

Simon Kakon
Replied On 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

Administrator [Syncfusion]
Replied On November 8, 2006 04:34 AM UTC

Hi Simon,

Try setting the ListBoxSelectionMode property to SelectionMode.One.

this.grid.ListBoxSelectionMode=SelectionMode.One;

Regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;