protected void productInfo() { DataTable dt = da.viewProductData(); ProductGV.DataSource = dt; //the source of gridview is the table that is returned by function which should include th products ProductGV.DataBind(); //bind the data to gridview }
protected void productInfo() { DataTable dt = da.viewProductData(); ProductGV.DataSource = dt; ProductGV.DataBind(); ProductGV.UseAccessibleHeader = true; ProductGV.HeaderRow.TableSection = TableRowSection.TableHeader; }