public void fillgrid() { Int32 country_id = Convert.ToInt32(ddcountry.SelectedValue == "" ? "0" : ddcountry.SelectedValue); Int32 state_id = Convert.ToInt32(ddstate.SelectedValue == "" ? "0" : ddstate.SelectedValue); Int32 city_id = Convert.ToInt32(ddcity.SelectedValue == "" ? "0" : ddcity.SelectedValue); Common obj = new Common(); DataSet ds = obj.BindingGridview(country_id, state_id, city_id); gvlocation.DataSource = ds; gvlocation.DataBind(); }
public void BindGV(string locationname) { Common obj = new Common(); locationname = "%" + locationname + "%"; DataSet ds = obj.GetAllLocation(locationname); gvlocation.DataSource = ds.Tables[0]; gvlocation.DataBind(); }
gvlocation.DataSource = ds;
gvlocation.DataSource = ds.Tables[0];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)