Search
ArrayModel.columnName Method
See Also
 






Gets the name of the specified column.

Namespace: MindFusion.DataViews
File: ArrayModel.js

 Syntax

JavaScript  Copy Code

function columnName (column)

 Parameters

column

Number. The column index.

 Return Value

String. The name of the field displayed in this column.

 Example

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   
}

 See Also