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 grid columns

Thread ID:

Created:

Updated:

Platform:

Replies:

67224 Aug 10,2007 11:44 AM UTC Aug 10,2007 03:09 PM UTC WinForms 2
loading
Tags: GridControl
Raj
Asked On August 10, 2007 11:44 AM UTC

Hi,

When we click on the cell(0,0) in the grid,all the rows and columns of the grid are selected by default. I want to implement the same when user clicks some other cell say cell(1,2) Any pointers on how i can do this?

Thanks in advance,
Raj

haneefm [Syncfusion]
Replied On August 10, 2007 02:47 PM UTC

Hi Raj,

Please try these code:

void gridControl1_CellClick(object sender, GridCellClickEventArgs e)
{
GridControl grid = sender as GridControl;
grid.Model.Selections.Add(GridRangeInfo.Table());
}

Best regards,
Haneef

Raj
Replied On August 10, 2007 03:09 PM UTC

Hi Haneef,

Thanks a lot for the help.

Regards,
Raj

>Hi Raj,

Please try these code:

void gridControl1_CellClick(object sender, GridCellClickEventArgs e)
{
GridControl grid = sender as GridControl;
grid.Model.Selections.Add(GridRangeInfo.Table());
}

Best 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

;