Gets the type of the specified column.
Namespace: MindFusion.DataViews
File: ArrayModel.js
JavaScript Copy Code |
---|
function columnType (column) |
Number. The column index.
DataType. The type.
The following code creates a grid with columns with different dataType and checks the type of the first column:
JavaScript Copy Code |
---|
var dv = MindFusion.DataViews; // create the grid columns var column1 = new dv.GridColumn("index"); var column2 = new dv.GridColumn("name"); // create the grid control if(grid.model.columnType(0) == dv.IntegerType) |