Hi There!
I face the problem, that i can't identify the row on DragDrop event where item was released in the grid.
System.Drawing.Point gridPoint = new System.Drawing.Point(drgevent.X, drgevent.Y); Infragistics.Win.UIElement element = this.DisplayLayout.UIElement.ElementFromPoint(gridPoint); Infragistics.Win.UltraWinGrid.UltraGridRow elRow = (Infragistics.Win.UltraWinGrid.UltraGridRow)element.GetContext(typeof(Infragistics.Win.UltraWinGrid.UltraGridRow));
I tried like this, but the element always is null. This is somehow related to the Point i get from the drgevent. It seems not to be the right position to locate the uielement below.
Unfortunately the mouseup event is not fired when doing DragDrop. I can locate the correct element when using the mouseUp event. But when it's not fired....?! How can i handle this? I#M using Infragistics NetAdvantage Suite 8.1.
Thank you and Best Regards, Marc!
The coordinates that you're getting might be in screen coordinates, so you should call grid.PointToClient to get the proper coordinates and use that to get the UIElement. You could also try looking at the LastElementEntered property on the grid's UIElement.
-Matt
Thank.. this works fine :-)