How To Clear the Contents of a DBGrid Control (150468)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q150468 SUMMARY
This article describes how to clear the contents of a DBGrid control. A
DBGrid control is bound to a Data control. To clear the DBGrid control of
all data, set the RecordSource property of the Data control so no records
are returned, and then execute the Refresh method on the Data control. The
DBGrid control displays the data retrieved by the Data control.
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbhowto KB150468 |
---|
|