このイベントはキャンセルできます。
WebDataGrid1.Behaviors.ColumnMoving.ColumnMovingClientEvents.HeaderMove = "WebDataGrid_HeaderMove"
WebDataGrid1.Behaviors.ColumnMoving.ColumnMovingClientEvents.HeaderMove = "WebDataGrid_HeaderMove";
// The client event 'HeaderMove' takes two parameters sender and e // sender is the object which is raising the event // e is the HeaderMoveEventArgs function WebDataGrid_HeaderMove(sender, e) { //Returns the drag markup element var dragElement = e.get_dragElement(); //Sets the bgColor property of the dragElement to Red dragElement.bgColor = "Red"; //Gets the column object you want to move var column = e.get_column(); //Gets the key of the column var key = column.get_key(); window.status = "Column '" + key + "' moving..."; }