GridControl::SetScrollBars

 

Description

Sets whether the control will display horizontal or vertical scroll bars.

Syntax

int SetScrollBars( int nScrollBars )

Parameters

nScrollBars
[input] ScrollBarsSettings

Return

Returns the original setting

Examples

Example codes can be pasted to doExample() function in GridControl's examples to run

m_GridCtrl.SetScrollBars(0);

/*enum ScrollBarsSettings
{
    flexScrollBarNone = 0,
    flexScrollBarHorizontal = 1,
    flexScrollBarVertical = 2,
    flexScrollBarBoth = 3
};*/

Remark

See Also

header to Included

GridControl.h