I have a problem with devexpress? I try to get the value of a selected cell in a gridControl, in a normal windows form datagridview I did it like this:
dataGridView1.CurrentRow.Cells[1].Value.ToString();
But with the gridControl that comes with devexpress it doesn't work... with what code can it be done in the same way?
Perhaps you can use the GetSelectedRows method of the GridView to return an array with the selected row ids. Then to get the value of a cell in that row you can use the GetRowCellValue method of the GridView.
You can get the GridView from the GridControl like so:
In the end I solved it like this
Antonio SF 's answer is fine , it worked for me, you just have to add the .ToString() at the end