Version

HeaderDropped Property

Event fired after a column has been moved.

This event is cancelable.

Syntax
'Declaration
 
Public Property HeaderDropped As String
public string HeaderDropped {get; set;}
Example
WebDataGrid1.Behaviors.ColumnMoving.ColumnMovingClientEvents.HeaderDropped = "WebDataGrid_HeaderDropped"
WebDataGrid1.Behaviors.ColumnMoving.ColumnMovingClientEvents.HeaderDropped = "WebDataGrid_HeaderDropped";
// The client event 'HeaderDropped' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the HeaderDroppedEventArgs
function WebDataGrid_HeaderDropped(sender, e) {

    //Gets the column object you want to move
    var column = e.get_column();

    //Gets the key of the column
    var key = column.get_key();

    //Gets the index of the column
    var index = column.get_index();

    //Gest the index of the column where it will be dropped
    var targetIndex = e.get_targetIndex();

                             
 
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also