このイベントはキャンセルできます。
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(); }