or
private void gridAssigned_DragDrop( object sender, DragEventArgs e ) { |
if ( e.Data.GetDataPresent( typeof( GridViewDataRowInfo ) ) ) { |
// dropped on which group? |
// need ID or text... |
GridViewRowInfo droppedDriver = GetRowAtPoint( gridAssigned, gridAssigned.PointToClient( new Point( e.X, e.Y ) ) ); |
// row I'm dragging |
GridViewDataRowInfo draggedInfo = ( GridViewDataRowInfo )e.Data.GetData( typeof( GridViewDataRowInfo ) ); |
} |
} |
private GridViewRowInfo GetRowAtPoint( RadGridView grid, Point location ) { |
RadElement element = grid.ElementTree.GetElementAtPoint( location ); |
// headercells are for grouping |
if ( element is GridHeaderCellElement ) { return null; } |
if ( element is GridCellElement ) { return (( GridRowElement )element).RowInfo; } |
return null; |
} |
grid.GridElement.RowHeight = (int)Math.Floor(this.GridElement.RowHeight * 0.9); |
grid.GridElement.TableHeaderHeight = (int)Math.Floor(this.GridElement.TableHeaderHeight * 0.95); |