Version

ColumnSelectionChanged Property (SelectionClientEvents)

Event fired after a Column's selection changed.
Syntax
'Declaration
 
Public Property ColumnSelectionChanged As String
public string ColumnSelectionChanged {get; set;}
Example
Me.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.ColumnSelectionChanged = "WDG1_ColumnSelectionChanged"
this.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.ColumnSelectionChanged = "WDG1_ColumnSelectionChanged";
// The client event ColumnSelectionChanged takes two parameters sender and e
// sender  is the object which is raising the event
// e is the ColumnSelectionChangedEventArgs

    function WDG1_ColumnSelectionChanged(sender, e) {

        //Returns the collection of selected columns
        var selectedColumns = e.getSelectedColumns();

        var s = prompt("Enter 'Yes' to unselect the columns : ");

        if (s == 'Yes')

        //Unselects the selected columns
            selectedColumns.clear();
    
    }
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