ComponentOne GridView for ASP.NET WebForms
jQuery.wijmo.c1gridview Namespace / options type / currentCellChanged Event
The jQuery.Event object.
In This Topic
    currentCellChanged Event
    In This Topic
    The currentCellChanged event handler is called after the current cell is changed.
    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 currentCellChanged event handler function
    widgetInstance.option("currentCellChanged", function (e) { } );
    currentCellChanged = function ( 
       e : Object
    ) { };

    Parameters

    e
    The jQuery.Event object.
    Example
    // Gets the data row bound to the current cell.
    $("#element").wijgrid({
    	currentCellChanged: function (e, args) {
    		var rowObj = $(e.target).wijgrid("currentCell").row();
    		if (rowObj) {
    			var dataItem = rowObj.data; // current data item (after 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({ currentCellChanged: function (e) { // some code here }}); * Bind to the event by type: $("#element").bind("wijgridcurrentcellchanged", function (e) { // some code here });
    See Also