471,122 Members | 1,023 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

Clearing a datagrid

greetings, how can iclear a datagrid content?
Nov 18 '05 #1
1 1238
The datagrid.datasource property can be bound to any object the implements IEnumerable interface. So happens that the String object implements this interface. So, I would set the datasource property of the datagrid to String.Empty

datagrid1.datasource = string.empty

Have not tested this.

"Asha" wrote:
greetings, how can iclear a datagrid content?

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Gary | last post: by
3 posts views Thread by Dan | last post: by
3 posts views Thread by Brad | last post: by
5 posts views Thread by Alvin Bruney | last post: by
3 posts views Thread by Ed Bick | last post: by
2 posts views Thread by dbuchanan | last post: by
1 post views Thread by amber | last post: by
2 posts views Thread by DaveP | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.