| GridControlSetGridRect Method (Boolean, Rectangle) |
Sets the grid rectangle for the window.
Namespace: Stingray.GridAssembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax public void SetGridRect(
bool set,
Rectangle rect
)
Public Sub SetGridRect (
set As Boolean,
rect As Rectangle
)
public:
void SetGridRect(
bool set,
Rectangle rect
)
Parameters
- set
- Type: SystemBoolean
true to set the area or false
to reset the area. - rect
- Type: System.DrawingRectangle
The new display area.
Remarks
Normally, the grid computes its drawing area with
GetClientRect(). If you call this method to set
the drawing area, this area is used in subsequent calls to
GetGridRect.
You have to take care of calling this method when the user
changes the window size.
Calling this method is useful if you want to display a grid
title.
See Also