GridView1.DataSource = null; GridView1.DataBind();
DataSource
GridView
class
... set { if (value != null) { //does some sort of validation on value; } this._dataSource = value; ... }
null
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)