ASPxClientGridViewCellInfo.column Property
In This Article
Gets the data column that contains the cell currently being processed.
#Declaration
TypeScript
column: ASPxClientGridViewColumn
#Property Value
Type | Description |
---|---|
ASPx |
An ASPx |
#Remarks
#Example
Note
For a full example, see ASP.
This example demonstrates different ways to skip or prevent editing certain cells. In this example, the ASPxClientGridViewBatchEditApi property provides access to the ASPxClientGridViewBatchEditApi.GetCellValue property that is used to get cell value.
function onFocusedCellChanging(s, e) {
if (e.cellInfo.column.name == 'command')
e.cancel = true;
else if (e.cellInfo.column.fieldName == 'SupplierID')
e.cancel = true;
else if (e.cellInfo.column.fieldName == 'UnitsInStock' && (e.cellInfo.rowVisibleIndex < 3 || e.cellInfo.rowVisibleIndex > 7))
e.cancel = true;
else if (e.cellInfo.column.fieldName == 'UnitPrice' && s.batchEditApi.GetCellValue(e.cellInfo.rowVisibleIndex, 'UnitPrice') > 22)
e.cancel = true;
}
See Also