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.
 
Back
Top