バージョン

CellSelectionChanging プロパティ

セルの選択が変更される前に発生するイベントです。

このイベントはキャンセルできます。

シンタックス
'宣言
 
Public Property CellSelectionChanging As String
public string CellSelectionChanging {get; set;}
使用例
Me.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.CellSelectionChanging = "WDG1_CellSelectionChanging"
this.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.CellSelectionChanging = "WDG1_CellSelectionChanging";
// The client event CellSelectionChanging takes two parameters sender and e
// sender  is the object which is raising the event
// e is the CellSelectionChangingEventArgs

        function WDG1_CellSelectionChanging(sender, e) {

            //Returns a Read Only collection of the currently selected cells
            var currentSelectedCells = e.getCurrentSelectedCells();
            
            //Returns the amount of cells in the collection
            var currentLength = currentSelectedCells.get_length();

            //Returns a Read Only collection of the newly selected cells
            var newSelectedCells = e.getNewSelectedCells();

            var newLength = newSelectedCells.get_length();

            window.status = "The number of cells selected changed from '" + currentLength + "' to '" + newLength + "'";
          
        }
参照