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

How can make a text of CurrentCell column Selected

Thread ID:





129976 Apr 13,2017 04:12 AM UTC Apr 14,2017 04:17 AM UTC WinForms 2
Tags: GridGroupingControl
Asked On April 13, 2017 04:12 AM UTC

I want make a text is selected when click on content of cell
How to do that ?

Thank for read and helping me !!!!

Replied On April 13, 2017 08:01 AM UTC

I find out how to selectAll text of currentcell but in TableControlCurrentCellActivated Event it still not selectAll , in TableControlCurrentCellChanged it working
This is my code
 void grd_TableControlCurrentCellActivated(object sender, GridTableControlEventArgs e)
            if (e.TableControl.CurrentCell.ColIndex == 1)
                GridTextBoxCellRenderer txt = grd.TableControl.CurrentCell.Renderer as GridTextBoxCellRenderer;

Piruthiviraj Malaimelraj [Syncfusion]
Replied On April 14, 2017 04:17 AM UTC

Hi Truong, 

Thanks for your interest in Syncfusion products. 

The GridGroupingControl have the direct support for select the whole text of a cell while clicking. In order to select the all text of a cell, set ActivateCurrentCellBehavior property as SelectAll. Please make use of the below code, 
Code example: 
//Select the whole text in a cell while clicking. 
this.gridGroupingControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll; 
UG Document: 
Sample link: 


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