Partition
Specifies where the grid's left and right panels split.
Usage |
grdGrid.Partition = nWhere2Split nWhere2Split = grdGrid.Partition |
Parameter |
Value |
Meaning |
nWhere2Split |
Numeric |
Specifies the pixel location where the left and right panels are split. This is always expressed in pixels and is not affected by ScaleMode. |
Graphically, you can drag the partition all the way to the right, where it takes a value 2 pixels less than the width. With one pixel each for the black lines on the left and right of the grid, that makes sense. Programmatically, you can't go as far. You start getting problems when you run into the vertical scrollbar. In the range of widths where the partition displays on top of the scrollbar, setting the partition width works, but it generates a beep and no error. Setting the partition to more than 2 pixels less than the width generates an error. We're sure the folks who tested this one were using a grid with no scrollbar! |
Partition_Access does not fire when you drag the SplitBar gadget around, nor when you release it. Like many built-in properties, it seems like the changing of this value cannot be trapped with the Access method. |
Example |
grdGrid1.Partition = 143 |
See Also |
Access, Assign, GridHitTest, Panel, PanelLink, ScrollBars, SplitBar |