Hello Mark,
Thank you for writing back.
You can detect which row will be selected considering the mouse downlocation and then show the message. Here is a sample code snippet demonstrating how to get the row to be selected:
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Telerik by Progress
Thank you for writing back.
You can detect which row will be selected considering the mouse down
protected
override
void
OnMouseDown(MouseEventArgs e)
{
GridDataCellElement cellUnderMouse =
this
.ElementTree.GetElementAtPoint(e.Location)
as
GridDataCellElement;
if
(cellUnderMouse !=
null
)
{
Console.WriteLine(cellUnderMouse.Value);
GridViewDataRowInfo row = cellUnderMouse.RowInfo
as
GridViewDataRowInfo;
}
//...some other code
base
.OnMouseDown(e);
}
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.