ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBDropdown.EmptyRows Property

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 your Control Panel settings.

Note: The RowDivider property applies to data rows and empty rows alike. You cannot suppress row dividers for just the empty rows when EmptyRows is True.

Example

The following code fills the unpopulated drop-down area with empty data rows:

·      Visual Basic

       Me.C1TrueDBDropdown1.EmptyRows = True

·      C#

       this.c1TrueDBDropdown1.EmptyRows = true;

·      Delphi

       Self.C1TrueDBDropdown1.EmptyRows := True;

See Also

C1TrueDBDropdown Class | C1TrueDBDropdown Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.