public void BindGrid() { //here we retrieve data from database// Object ProductFetch = new Object(); ProductFetch.Product_Name = DdlProduct.SelectedValue; //ProductFetch.Product_Brand = DdlBrand.SelectedValue; //ProductFetch.Product_Quantity = DdlQuantity.SelectedValue; //ProductFetch.Product_MRP = int.Parse(Txtmrp.Text); DataTable dt = BSLAYER.FetchProduct(ProductFetch); GridView1.Visible = true; GridView1.DataSource = dt; GridView1.DataBind(); }