-3

How to get the current Cell in Grid Control and return cell in textbox?

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364

1 Answers1

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