How to clear contents of a DataGrid?

How to clear contents of a DataGrid?

Post by Mark Preus » Wed, 13 Mar 2002 23:34:24



There seems to be no Clear method so do
you have to do it manually?

thanks,

mark

 
 
 

How to clear contents of a DataGrid?

Post by Luke Zhang [M » Fri, 15 Mar 2002 17:02:03


You can set its dataSource to a blank ADO recordset, for example;

Dim re As New ADODB.Recordset

Set DataGrid1.DataSource = re

Luke

(This posting is provided "AS IS", with no warranties, and confers no
rights.)