Get data from a selected row

2

I'm working with DevExpress GridControl for Windows Forms, what I want is to get data from certain row, I do not know how to do it.

In Windows Forms DataGridView I do it in the following way

if (dgvCategoria.Rows.Count > 0)
            Helper.IdRow = Convert.ToInt32(dgvCategoria.CurrentRow.Cells[0].Value);
    
asked by Pedro Ávila 04.11.2016 в 22:13
source

1 answer

3

Use the GetFocusedRowCellValue method, like this:

Helper.IdRow = Convert.ToInt32(GridControl1.GetFocusedRowCellValue("miColumna"));
    
answered by 04.11.2016 / 22:41
source