Hello Kevin,
Thank you for this question.
I would suggest using the
CellDoubleClick event. This event is fired only when a cell element is hovered. To use the event effectively you should set the grid to read only mode by setting the
ReadOnly property to
true. When processing the
CellDoubleClick event, you can get the current cell through the
CurrentCell property of
RadGridView. Consider the code below:
void radGridView1_CellDoubleClick(object sender, GridViewCellEventArgs e) |
{ |
object value = this.radGridView1.CurrentCell.Value; |
} |
You can get the element that is currently hovered by using the
GetElementAtPoint method. Take a look at the following code snippet:
void radGridView1_DoubleClick(object sender, EventArgs e) |
{ |
Point pt = this.radGridView1.PointToClient(Control.MousePosition); |
GridCellElement cell = this.radGridView1.ElementTree.GetElementAtPoint(pt) as GridCellElement; |
if (cell != null) |
{ |
//... |
} |
} |
I hope this helps. Please contact me if you need further assistance.
Kind regards,
Jack
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.