ComponentOne True DBGrid Pro 8
RowCount Property

This property returns or sets the number of rows in a RowBuffer object passed to an unbound event procedure for a TDBGrid control.

Syntax

rowbuffer.RowCount= long

Remarks

Read/Write at run time. Not available at design time.

In the UnboundReadData event, this property indicates how many rows the grid is requesting. After filling those rows by setting the Value and Bookmark properties, your event procedure should set the RowCount property to the number of rows actually fetched.

In the UnboundAddData and UnboundWriteData events, this property is always set to 1, since only a single row can be added or updated at a time. However, you can set this property to 0 to indicate that the add or update operation failed.

Note

When a RowBuffer object is passed to an unbound event procedure, the initial value of the RowCount property also specifies the maximum value. An error will occur if you attempt to exceed the maximum value.

See Also

RowBuffer Object

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback