Sets the width of the specified grid column.
Namespace: MindFusion.DataViews
File: Grid.js
JavaScript Copy Code |
---|
function setColumnWidth (column, width) |
Number. The column index.
Number. The width in pixels.
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); |