protected void GVRate_PageIndexChanging(object sender, GridViewPageEventArgs e) { try { GVRate.PageIndex = e.NewPageIndex; grid(); } catch (Exception ex) { } }
GridView
private void Page_Load() { if (!IsPostBack) { grid(); } }
private void grid(){ if(!string.IsNullOrEmpty(yourSearchTextBox.Text) { // Then call search method. Make sure you bind the Grid in that method. } else { // Normally Bind the Grid as you are already doing in this method. }}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)