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.
Unfortunately, activation email could not send to your email. Please try again.

Select entire row in gdbg

Thread ID:

Created:

Updated:

Platform:

Replies:

51496 Nov 7,2006 04:46 AM Nov 7,2006 11:34 PM Windows Forms 3
loading
Tags: GridControl
Simon Kakon
Asked On November 7, 2006 04:46 AM

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 05:21 AM

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 08:54 AM

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 7, 2006 11:34 PM

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.

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.

;