A data row's attributes.

Usage

Set_Property(OLECtrlEntID, "OLE.DataRow[row]", Array)

Values

Array has the following structure:

PosNameTypeDescriptionDefault
<1>HeightIntegerThe height, in pixels, of the row16
<2>VisibleBooleanEstablishes whether or not the row is visible to the userTrue
<3>ResizableBooleanEstablishes whether or not the user can resize the row at runtimeTrue
<4>AutosizedBooleanEstablishes whether or not the row resizes itself to fit all rows as best as possible within the entire height of the edit tableFalse
<5>Selected HeightIntegerThe height, in pixels, of the row when selected0
<6>Copy ImagesBooleanEstablishes whether or not new cells added to this column copy the image from the previous row1

Indices

IndexDescription
rowIndex to an existing row

Remarks

The DataRow allows you to modify row-specific attributes for data rows only. A data row is any row that is not 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.

Height

The first field, Height, is how you can alter the height of a row. You can also just read this field if you wish to find the height of a row. This value changes if the user is allowed to resize the row during runtime.

Visible

The Visible field allows you to show or hide rows from the user. The rows still exist and have the same index locations, but the user has no indication that they exist.

Resizable

The third field, Resizable, establishes whether or not the user can click and drag the row's header to resize it. By default all rows are resizable. If you set a row to be autosized, then this field is ignored and the user cannot resize the row.

Autosized

The forth field, Autosized, lets you specify automatic resizing behavior for a row. The edit table resolves autosized rows thusly: if the total height of all rows is less then the table's height, then all autosized 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 rows revert to their preset Height values.

Selected Height

The Selected Height field allows you customize the height of the row when it becomes selected. A row is considered selected if any cell in that row is the selected cell. Simply set this field to any value larger than the Height field. This size will be applied only when it will make the row larger. If the row is larger than this value, then it is ignored. This feature is useful if you need to grow the row the user is working on, as if they were zoomin in.

Copy Images

The Copy Images field controls how images are handled when new cells are added to the row. By default, the new cell gets a copy of the image used in the cell before it. Set this to zero if you want all new cell's to have no image, regardless of the previous cell's image.

See Also

DataColumnHeaderRow

  • No labels