Search
Grid.setColumnWidth Method
See Also
 






Sets the width of the specified grid column.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

function setColumnWidth (column, width)

 Parameters

column

Number. The column index.

width

Number. The width in pixels.

 Example

The following code sets the column with of the first and second columns of a grid to 150 and 100 points respectively:

JavaScript  Copy Code
// set column widths
grid.setColumnWidth(0, 150);
grid.setColumnWidth(1, 100);

 See Also