private void DoBindGridview() { List <NoteHistoryData> result = SearchLeadBiz.SearchNoteHistory(txtTicketID.Text.Trim()); BindGridview((COC.Application.Shared.GridviewPageController)pcTop, result.ToArray(), 0); cbNoteFlag.Enabled = gvNoteHistory.Rows.Count > 0 ? true : false; upResult.Update(); }
protected void PageSearchChange(object sender, EventArgs e) { try { List <NoteHistoryData> result = SearchLeadBiz.SearchNoteHistory(txtTicketID.Text.Trim()); var pageControl = (COC.Application.Shared.GridviewPageController)sender; BindGridview(pageControl, result.ToArray(), pageControl.SelectedPageIndex); } catch (Exception ex) { string message = ex.InnerException != null ? ex.InnerException.Message : ex.Message; _log.Debug(message); AppUtil.ClientAlert(Page, message); } }