A header row's attributes.
Usage
Set_Property(OLECtrlEntID, "OLE.HeaderRow[row]", Array)
Values
Array has the following structure:
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Height | Integer | The height, in pixels, of the row | 16 |
<2> | Visible | Boolean | Establishes whether or not the row is visible to the user | True |
<3> | Resizable | Boolean | Establishes whether or not the user can resize the row at runtime | True |
<4> | Autosized | Boolean | Establishes whether or not the row resizes itself to fit all rows as best as possible within the entire height of the edit table | False |
Indices
Index | Description |
---|---|
row | Index to an existing header row |
Remarks
The HeaderRow property allows you to modify row-specific attributes for header rows only. A header row is any row that is made entirely of header cells. Note also that a row index is requested, not a record index since records often span more than one row. By default, there is only one header row, and it is the top most row (index 1).
The first field of this property, Height, is how you can alter the height of a header row. You can also just read this field if you wish to find the height of a header row. This value changes if the user is allowed to resize the header row during runtime.
The Visible field allows you to show or hide header rows from the user. The header rows still exist and have the same index locations, but the user has no indication that they exist.
The third field, Resizable, establishes whether or not the user can click and drag the header row's top most header to resize it. By default all header rows are resizable. If you set a header row to be autosized, however, then this field is ignored and the user cannot resize the header row.
The forth field, Autosized, lets you specify automatic resizing behavior for a header row. The edit table resolves autosized header rows thusly: if the total height of all rows is less then the table's height, then all autosized header rows are equally sized in such as way that all rows fit perfectly within the table. If the total height of all rows is greater than the table's height, then all autosized header rows revert to their preset Height values.