//Method used when one of the events on the page is updating the table and query private void Binding(DataView view) { //Sets the datasource of the webpage's Gridview to the TableBase object's returned Dataview from event methods. ItemLookUpGridView.DataSource = view; //Calls for the page to be updated and a postback ItemLookUpGridView.DataBind(); }
//Method used when the page is intially called and loaded private void Binding() { //Sets the datasource of the webpage's Gridview to the TableBase object's returned DataView ItemLookUpGridView.DataSource = Base.BindGrid(); //Calls for the page to be updated and a postback ItemLookUpGridView.DataBind(); }