ComponentOne GridView for ASP.NET WebForms
jQuery.wijmo.c1gridview Namespace / options type / currentCellChanging Event
The jQuery.Event object.
The data with this event.
In This Topic
    currentCellChanging Event
    In This Topic
    The currentCellChanging event handler is called before the cell is changed. You can use this event to get a selected row or column or to get a data row bound to the current cell. This event is cancellable.
    Syntax
    var options; // Type:  jQuery.wijmo.c1gridview.options
    
          // Create a new c1gridview widget
          $(".selector").c1gridview(options);
    
          // Get a previously created c1gridview widget instance
          var widgetInstance; // Type:  jQuery.wijmo.c1gridview
          widgetInstance = $(".selector").data("wijmo-c1gridview");
    
          // Set currentCellChanging event handler function
    widgetInstance.option("currentCellChanging", function (e, args) { } );
    currentCellChanging = function ( 
       e : Object,
       args : wijmo.grid.ICurrentCellChangingEventArgs
    ) { };

    Parameters

    e
    The jQuery.Event object.
    args
    The data with this event.
    Example
    // Gets the data row bound to the current cell.
    $("#element").wijgrid({
    	currentCellChanging: function (e, args) {
    		var rowObj = $(e.target).wijgrid("currentCell").row();
    		if (rowObj) {
    			var dataItem = rowObj.data; // current data item (before the cell is changed).
    		}
    	}
    });
    Remarks
    You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ currentCellChanging: function (e, args) { // some code here }}); * Bind to the event by type: $("#element").bind("wijgridcurrentcellchanging", function (e, args) { // some code here });
    See Also