Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 99250

Drag & Drop ready to go

$
0
0
Hello Mark, 

Thank you for writing back. 

You can detect which row will be selected considering the mouse down location and then show the message. Here is a sample code snippet demonstrating how to get the row to be selected:
 
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.

Viewing all articles
Browse latest Browse all 99250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>