コード例 #1
0
    protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
    {
        ShoveGridPager pager = (ShoveGridPager)Sender;

        if (pager.ID == "gPagerHistory")
        {
            this.hdCurDiv.Value = "divHistory";
            this.BindHistoryData();
        }
        else if (pager.ID == "gPager_Reward")
        {
            this.hdCurDiv.Value = "divReward";
            this.BindDataReward();
        }
    }
コード例 #2
0
 public static void DataGridBindData(DataGrid g, DataView dv, ShoveGridPager gPager)
 {
     g.DataSource = dv;
     try
     {
         g.DataBind();
     }
     catch
     {
         g.CurrentPageIndex = 0;
         gPager.PageIndex   = 0;
         g.DataBind();
     }
     gPager.Visible = dv.Count > 0;
 }
コード例 #3
0
 public static void DataGridBindData(DataGrid g, DataTable dt, ShoveGridPager gPager)
 {
     g.DataSource = dt;
     try
     {
         g.DataBind();
     }
     catch
     {
         g.CurrentPageIndex = 0;
         gPager.PageIndex   = 0;
         g.DataBind();
     }
     gPager.Visible = dt.Rows.Count > 0;
 }
コード例 #4
0
    protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
    {
        ShoveGridPager pager = (ShoveGridPager)Sender;

        if (pager.ID == "gPager")
        {
            this.hdCurDiv.Value = "divMyFollowSchemes";
            this.BindData();
        }
        else if (pager.ID == "gPagerSetFollowScheme")
        {
            this.hdCurDiv.Value = "divSetMyFollowSchemes";
            this.BindDataForFriendFollowScheme();
        }
    }
コード例 #5
0
 public static void DataGridBindData(DataGrid g, DataView dv, ShoveGridPager gPager)
 {
     g.DataSource = dv;
     try
     {
         g.DataBind();
     }
     catch
     {
         g.CurrentPageIndex = 0;
         gPager.PageIndex = 0;
         g.DataBind();
     }
     gPager.Visible = dv.Count > 0;
 }
コード例 #6
0
 public static void DataGridBindData(DataGrid g, DataTable dt, ShoveGridPager gPager)
 {
     g.DataSource = dt;
     try
     {
         g.DataBind();
     }
     catch
     {
         g.CurrentPageIndex = 0;
         gPager.PageIndex = 0;
         g.DataBind();
     }
     gPager.Visible = dt.Rows.Count > 0;
 }