In WinGrid™ you can display a customized message at run time indicating that the grid has no data source bound to it, is bound to a data source that contains no rows, or all rows are filtered out.
This topic contains the following sections:
The following table lists the empty message configurable aspects of the WinGrid control.
The Appearance properties NoDataSourceMessageAppearance, NoRowsInDataSourceMessageAppearance, and NoVisibleRowsMessageAppearance allow further customizations that include; text alignment, background color, foreground color, fonts, images, and more.
When no data source is defined on the WinGrid control, a custom message can be displayed to notify the user.
The screenshot below demonstrates how the WinGrid looks as a result of the following settings:
When a data source is defined, but contains no rows a customizable message can be displayed to notify the user.
The screenshot below demonstrates how the WinGrid looks as a result of the following settings:
When a data source is defined, contains rows, but all rows have been filtered out, a customizable message can be displayed to notify the user.
The screenshot below demonstrates how the WinGrid looks as a result of the following settings:
The following topics provide additional information related to this topic.