| GridControlSetColWidth Method (UInt32, UInt32, Int32, Int32, RedrawFlags) |
Sets the width of the specified columns.
Namespace: Stingray.GridAssembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax public bool SetColWidth(
uint fromCol,
uint toCol,
int width,
int[] widthArray,
RedrawFlags redraw
)
Public Function SetColWidth (
fromCol As UInteger,
toCol As UInteger,
width As Integer,
widthArray As Integer(),
redraw As RedrawFlags
) As Boolean
public:
bool SetColWidth(
unsigned int fromCol,
unsigned int toCol,
int width,
array<int>^ widthArray,
RedrawFlags redraw
)
Parameters
- fromCol
- Type: SystemUInt32
The first column index. - toCol
- Type: SystemUInt32
The last column index. - width
- Type: SystemInt32
The width of all the indicated columns, in
pixels. - widthArray
- Type: SystemInt32
An array holding the widths for the
specified columns. If it is nullptr,
width is used for all the indicated
columns. - redraw
- Type: Stingray.GridRedrawFlags
The redraw technique.
It can take one of the following values:
- UpdateNow
- to scroll the window contents and call
UpdateWindow() after
invalidating the window.
- Smart
- to scroll the window contents without
calling UpdateWindow() after
the last invalidation.
- Invalidate
- to simply invalidate the window area below
the row fromRow.
Return Value
Type:
Booleantrue if the command is successfully executed;
false if the command fails or if the user aborts the
operation.
Remarks
Equivalent to
SetColWidth(fromCol,
toCol,
width,
widthArray,
redraw,
Do).
See Also