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

Highlight the text in a cell in a GridGroupingControl

Thread ID:





73449 May 7,2008 01:07 PM UTC May 12,2008 05:04 PM UTC WinForms 2
Tags: GridControl
Ha Tran
Asked On May 7, 2008 01:07 PM UTC

I'd like to highlight the text in a cell when a user clicks on it. Any idea?


Ha Tran
Replied On May 7, 2008 03:19 PM UTC

Found the answer, I guess I'd post it here so others could find it later.
gridGroupingControl1.TableControl.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;

By the way, this also works for "readonly cells." How do you disable the cursor/carret on a read-only cell?

>I'd like to highlight the text in a cell when a user clicks on it. Any idea?


Sri Rajan [Syncfusion]
Replied On May 12, 2008 05:04 PM UTC


Thank you for your interest in Syncfusion products.

Please refer the below code to disable the cursor on a read-only cell.

this.gridGroupingControl1.TableControlCurrentCellStartEditing += new GridTableControlCancelEventHandler(gridGroupingControl1_TableControlCurrentCellStartEditing);

void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
if (e.TableControl.GetTableViewStyleInfo(cc.RowIndex, cc.ColIndex).ReadOnly)
e.Inner.Cancel = true;

Please let me know if this helps,

Best Regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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