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.

GGC : How to allow one click in column with type checkbox?

Thread ID:





84101 Jun 29,2009 07:33 AM Jul 2,2009 08:04 AM Windows Forms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On June 29, 2009 07:33 AM


I have a gridgroupingcontrol in my app and I would like allow the user clicks only in a register with check, don´t permiss enables others checkboxes. How do I do this?


Ediberto Alves

Administrator [Syncfusion]
Replied On June 29, 2009 09:38 AM


Lingaraj S [Syncfusion]
Replied On July 2, 2009 08:04 AM

Hi Alves,

Thank you for your interest in Syncfusion product.

If you want to click the check only one time, then please try using Record.Id and conditional statements in TableControlCheckBoxClick event to achieve this

behavior. The Record is maintain the unique Id in GridGroupingControl. The TableControlCheckBoxClick event is fired, when the check box has been clicked in

GridGroupingControl. The Cancel property is used in TableControlCheckBoxClick event to cancel the check box click after the first click.

Refer the code below:

List lis = new List();
void gridGroupingControl1_TableControlCheckBoxClick(object sender, GridTableControlCellClickEventArgs e)
e.TableControl.CurrentCell.MoveTo(e.Inner.RowIndex, e.Inner.ColIndex);
GridTableCellStyleInfo sty = e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex);
if (sty.TableCellIdentity.DisplayElement.Kind == DisplayElementKind.Record)
if (lis.Contains(sty.TableCellIdentity.DisplayElement.GetRecord().Id))
e.Inner.Cancel = true;

Refer the sample in below link:

Please let me know if you have any queries.

Lingaraj S.


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.