Gets the name of the specified column.
Namespace: MindFusion.DataViews
File: GridModel.js
JavaScript Copy Code |
---|
function columnName (column) |
Number. The column index.
String. The name of the field displayed in this column.
The 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 } |