Version

HeaderDragStart Property

Event fired once a column move operation starts.

This event is cancelable.

Syntax
'Declaration
 
Public Property HeaderDragStart As String
public string HeaderDragStart {get; set;}
Example
WebDataGrid1.Behaviors.ColumnMoving.ColumnMovingClientEvents.HeaderDragStart = "WebDataGrid_HeaderDragStart"
WebDataGrid1.Behaviors.ColumnMoving.ColumnMovingClientEvents.HeaderDragStart = "WebDataGrid_HeaderDragStart";
// The client event 'HeaderDragStart' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the HeaderDragStartEventArgs 
  function WebDataGrid_HeaderDragStart(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();

      if (!confirm("Are you sure you want to move the column '" + key + "' from the index '" + index + "' ?"))

          //Cancels the HeaderDragStart event
          e.set_cancel(true);
               
  }
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