By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,549 Members | 1,717 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,549 IT Pros & Developers. It's quick & easy.

DataGrid: How to clear the contents of a DataGrid

P: n/a
RSB
I have a data grid and i want to Clear the Contents ..

How do i do that.. Is there any direst property ??

thanks

RSB
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
use
DataGrid.DataSource = null;
DataGrid.DataBind();

Regards
Martin

"RSB" <rs*****@hotmail.com> wrote in message
news:wE*****************@news.cpqcorp.net...
I have a data grid and i want to Clear the Contents ..

How do i do that.. Is there any direst property ??

thanks

RSB

Nov 18 '05 #2

P: n/a
RSB
Thanks Martin
"Martin Marinov" <me********@mecrossroad.bg> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
use
DataGrid.DataSource = null;
DataGrid.DataBind();

Regards
Martin

"RSB" <rs*****@hotmail.com> wrote in message
news:wE*****************@news.cpqcorp.net...
I have a data grid and i want to Clear the Contents ..

How do i do that.. Is there any direst property ??

thanks

RSB


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.