devexpress gridView.Rows?

AhmetSem picture AhmetSem · Jul 16, 2012 · Viewed 42.8k times · Source

I want to do it with Devexpress extension (gridview) :

string dataInCell = dataGridView1.Rows[i].Cells[j].Value.ToString();

Like :

gridView1.Rows[i].Cells[j]

Answer

SidAhmed picture SidAhmed · Jul 16, 2012

If you are trying to get the value of a cell in a specefic row, here is how :

a. If you want the value of a cell of the focused row :

view.GetFocusedRowCellValue("fieldName");

b. If you want the cell value of a row knowing his handle :

view.GetRowCellValue(rowHandle, "fieldName");

Good luck