예제 #1
0
        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
        }
예제 #2
0
        protected void productInfo()
        {
            DataTable dt = da.viewProductData();

            ProductGV.DataSource = dt;
            ProductGV.DataBind();
            ProductGV.UseAccessibleHeader    = true;
            ProductGV.HeaderRow.TableSection = TableRowSection.TableHeader;
        }