Gets or sets a value that determines how the grid displays rows below the last data row.
[Visual Basic]
Public Property EmptyRows As Boolean
[C#]
public bool EmptyRows {get;set;}
[Delphi]
public property EmptyRows: Boolean read get_EmptyRows write set_EmptyRows;
Remarks
If all of the records in the data source do not fill up the entire grid, setting EmptyRows to True will fill the unpopulated grid area with empty data rows. If EmptyRows is False (the default), then the unpopulated grid area will be blank and will be filled with the system three-dimensional Objects color (or the system Button Face color) as determined by Control Panel settings.
Note: The RowDivider property applies to data rows and empty rows alike. Row dividers cannot be suppressed for just the empty rows when EmptyRows is True.
Example
The following code fills the underpopulated grid area with empty data rows:
Me.C1TrueDBGrid1.EmptyRows = True
· C#
this.c1TrueDBGrid1.EmptyRows = true;
· Delphi
Self.C1TrueDBGrid1.EmptyRows := True;
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |