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. Image for the cookie policy date

How can make a text of CurrentCell column Selected

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

Thank for read and helping me !!!!

2 Replies

TR Truong 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;

PM Piruthiviraj Malaimelraj Syncfusion Team 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: 

Live Chat Icon For mobile
Up arrow icon