Bound Mode > Visual Basic Data Control Considerations > Using True DBGrid to display SQL query results |
True DBGrid can automatically configure itself to changes in the data control's Recordset. This feature is very useful for displaying the results of ad-hoc SQL queries. If the grid does not have a layout defined, it will detect any change in the Data control's Recordset and display the new query result set automatically—no code is necessary to tell the grid what to do. You can create very powerful user interfaces using these automatic features of the grid. Tutorial 2 describes this feature in detail and also illustrates a few interesting and useful SQL statements.