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.

How can make a text of CurrentCell column Selected

Thread ID:





129976 Apr 13,2017 12:12 AM Apr 14,2017 12:17 AM Windows Forms 2
Tags: GridGroupingControl
Asked On April 13, 2017 12:12 AM

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 04:01 AM

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 12:17 AM

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.

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.