GetColumnWidth

Top  Previous  Next

Gets the width in pixels of a column of current active grid - either the full grid or a sub grid.

[Visual Basic .NET]

Public Function GetColumnWidth(ByVal GridIndex As Integer, ByVal ColumnIndex As Integer) As Integer

[C#]

public int GetColumnWidth(int GridIndex, int ColumnIndex);

Parameters

GridIndex

Specifies the grid index - either the full gird or a sub grid. -1 indicates the full grid; for a sub grid, the parameter's value must be between 0 and the return value of GetTotalSubGrids() minus 1.

ColumnIndex

Specifies the index (0-based) of a column, and this parameter value must be between 0 and total number of the columns minus 1.

 

Return Value:

The return value is the width of the column.