Gets the name of the specified column.
Namespace: MindFusion.DataViews
File: ArrayModel.js
SyntaxJavaScript
Copy Code
|
|---|
function columnName (column) |
Number. The column index.
String. The name of the field displayed in this column.
ExampleThe following code checks if the name of the first column in the model of a grid is "index":
JavaScript
Copy Code
|
|---|
| if(grid.model.columnName(0) != "index") { //do something } |
See Also