0
Hi, I’d like a hand,
I’m using the DEVEXPRESS framework. I have a form with a Gridcontrol, In this Gridcontrol I have a Doubleclick event. When I click on the selected line I want to take only the ID line. Using a normal grid I do this code to get:
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 can get the ID of the line I clicked, but when I use the component of DEVEXPRESSS Gridcontrol, there is no evendo Celldoubleclick, only the Doubleclick event. I’ve tried several things, but without success to get the ID of the selected line.
If anyone helps, thank you
has to be with double click? If I’m not mistaken, the dev grid control does not accept double click on Rows
– Marceloawq
does not have a function called Getfocusedrow() ? Usually it returns the object that is on the line.
– Weiner Lemes