protected void RebindGrid(object sender, EventArgs e) { iPartRequestClient assignDriver = new iPartRequestClient(); CustomProfile profile = CustomProfile.GetProfile(); var SearchedValue = hdnFilterText.Value; DataSet ds = new DataSet(); if (SearchedValue == "") { ds = assignDriver.GetDriverDetails(profile.DBConnection._constr); } else { ds = assignDriver.GetFilteredDriverList(SearchedValue, profile.DBConnection._constr); } GVDriver.DataSource = ds; GVDriver.DataBind(); }