Clearing a datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top