Hello, I'd like some help,
I'm using the DEVEXPRESS framework. I have a form with a GridControl, in this GridControl I have a DoubleClick event. When I click the selected line I want to get only the ID of the line. Using a normal grid I make this code to achieve:
private void gvDados_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
this.codigo = Convert.ToInt32(gvDados.Rows[e.RowIndex].Cells[0].Value);
this.Close();
}
}
In this code I get the ID of the row I clicked, but when I use the DEVEXPRESSS GridControl component, there is no evolving CellDoubleClick, only the DoubleClick event. I've tried several things, but no success in getting the ID of the selected line.
If someone helps, thank