Click to See Complete Forum and Search --> : DataGrid Question


crpowell
April 3rd, 2003, 08:04 AM
OK, I know it's simple (at least I hope), but I can't seem to find an answer....

How do I empty/clear/reset a DataGrid control

The only thing I can think of right now to do is set the databinding to an empty dataset. It seems to work, but is this the proper way of achieving what I want?

Thanks.

Charlie

DdH
April 3rd, 2003, 03:01 PM
Setting the property .Datasource = Nothing will clear the grid

crpowell
April 3rd, 2003, 03:09 PM
Thanks. I guess I was almost there.