How to get the current Cell in Grid Control and return cell in textbox?
Asked
Active
Viewed 347 times
-3
-
What do you mean by this "and return cell in textbox" ? – Sriram Sakthivel May 11 '15 at 12:11
-
possible duplicate of [How to get the selected row values of DevExpress XtraGrid?](http://stackoverflow.com/questions/12762617/how-to-get-the-selected-row-values-of-devexpress-xtragrid) – Niranjan Singh May 11 '15 at 14:19
-
When I want in all your press Double in GridControl1 In the selected item is submitted to the textbox So I edited it – MHdi Elzuber May 21 '15 at 06:19
1 Answers
0
I am assuming that you want XtraGrid's current cell value in textbox.
So for that retrieve cell value by -
// <gridView> is name of GridView
<gridView>.GetRowCellValue(<gridView>.FocusedRowHandle, <aFieldName>);
or if you are trying to get cell's text, go as follow -
string cellValue = gridView1.GetFocusedDisplayText();
For more, please refer DevExpress documentation - Obtaining and Setting Cell Values

Vikram Singh Saini
- 1,749
- 3
- 22
- 42
-
If it was helpful, please mark it as answer so that it can be helpful to other users. ;) – Vikram Singh Saini May 11 '15 at 13:01