コード例 #1
0
 protected void AuditLogDetails_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     GrdAuditLogDetails.PageIndex = e.NewPageIndex;
     GrdAuditLogDetails.DataBind();
     DisplayAuditLogdetails();
     GrdAuditLogDetails.SelectedRowStyle.Reset();
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 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);
 }