protected void AuditLogDetails_PageIndexChanging(object sender, GridViewPageEventArgs e) { GrdAuditLogDetails.PageIndex = e.NewPageIndex; GrdAuditLogDetails.DataBind(); DisplayAuditLogdetails(); GrdAuditLogDetails.SelectedRowStyle.Reset(); }
protected void AuditLogDetails_PageIndexChanged1(object sender, EventArgs e) { GrdAuditLogDetails.DataBind(); DisplayAuditLogdetails(); if (GrdAuditLogDetails.Rows.Count > 1) { lblPageInfo.Text = String.Format("Viewing Page {0} of {1}", GrdAuditLogDetails.PageIndex + 1, GrdAuditLogDetails.PageCount); } GrdAuditLogDetails.SelectedRowStyle.Reset(); }
public bool DisplayAuditLogdetails() { try { PPRDataBL obj = new PPRDataBL(); DataTable dt = new DataTable(); dt = obj.GetAuditLogDetaisBL(Session["LoginId"].ToString()); GrdAuditLogDetails.DataSource = dt; GrdAuditLogDetails.DataBind(); } catch (Exception ex) { LogError(ex); } return(false); }