You can also connect the StatusBar control to a DataSet. The StatusBar control doesn't display the data from the DataSet but displays the following status information generated by the DataSet:
You can add a StatusBar control to your application in two ways:
To include a StatusBar when creating your application:
To add the StatusBar to the UI of your existing application:
Note: The exact location of the StatusBar may change depending on the layout manager in use. For more information on layouts, see the Using layout managers chapter in the User Guide.
Once you set the dataSet property, you'll notice that the StatusBar control displays information that the cursor is on Row 1 of x (where x is the number of records in the DataSet).
To test its display of validation information:
By setting the text of the StatusBar at relevant points in your program programmatically, you can overwrite the current message displayed in the StatusBar with your specified text. This text message, in turn, gets overwritten when the next text is set or when the next DataSet status message is generated. The status message can result from a navigation through the data in the grid, validation errors when editing data, and so on.
For other examples of applications that include a StatusBar control, see the following topics: