Search
GridModel.columnCaption Method
See Also
 






Gets the display text of the specified column.

Namespace: MindFusion.DataViews
File: GridModel.js

 Syntax

JavaScript  Copy Code

function columnCaption (column)

 Parameters

column

Number. The column index.

 Return Value

String. The display text.

 Example

The following code checks the caption of the 4th column in a grid and gets the value rendered in its first cell:

JavaScript  Copy Code
if(grid.model.columnCaption(3) == "Registered")
{
   //get the data in the first cell of the column
    var cellData = grid.model.getValue(0, 3);
    .............................................
}

 See Also