Gets a value, indicating whether the cells in the specified column can be edited.
Namespace: MindFusion.DataViews
File: GridModel.js
SyntaxJavaScript
Copy Code
|
|---|
function columnEditable (column) |
Number. The column index.
Boolean. True if the cells in this column can be edited, otherwise false.
ExampleThe following code checks if the first column of a grid is editable, and if so, adds a new row:
JavaScript
Copy Code
|
|---|
if( grid.columnEditable(0) ) grid.model.addRow(dataList, 0); |
See Also