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.

Cell Value Selected

Thread ID:





52851 Dec 5,2006 06:58 AM Dec 6,2006 04:09 AM Windows Forms 3
Tags: GridControl
Asked On December 5, 2006 06:58 AM


How can i get cell value selected on cell click ...

Administrator [Syncfusion]
Replied On December 5, 2006 07:35 AM

Hi Ubaid,

Please try this code.

object ocellvalue = this.grid.Model[e.RowIndex,e.ColIndex].CellValue;

Best Regards,

Administrator [Syncfusion]
Replied On December 6, 2006 02:47 AM

Hi ... Sorry for putting an ambiguous question ...

Actually, i dont want to get the value of cell, what i want is ... that when i click on a cell, the text in that cell gets selected like when we double click in a cell, whole of the text gets selected.

Administrator [Syncfusion]
Replied On December 6, 2006 04:09 AM

Hi Ubaid,

You can access the GridTextBoxCellRenderer and call Select() method to select a portion of text inside TextBoxCell. Here is a code snippet to show this.

//Use this code CellClick event
GridCurrentCell cc = this.grid.CurrentCell;

GridTextBoxCellRenderer cr = cc.Renderer as GridTextBoxCellRenderer;

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.

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.