/// <summary>
    /// ��Grid
    /// </summary>
    protected void BindGrid()
    {
        LMessageSortBB messageSortBB = new LMessageSortBB();
        DataSet ds = new DataSet();

        try
        {
            ds = messageSortBB.GetList(this.StrWhere);
            this.grid.DataSource = ds.Tables[0];
            this.grid.DataBind();
            //��ֵ��¼������ҳ������
            this.Label3.Text = ds.Tables[0].Rows.Count.ToString();
            this.Label2.Text = this.grid.PageCount.ToString();
            this.currPage.Text = (this.grid.PageIndex + 1).ToString();
        }
        finally
        {
            messageSortBB.Dispose();
        }
    }
Пример #2
0
 private void BindList()
 {
     LMessageSortBB messageSortBB = new LMessageSortBB();
     DataSet ds = new DataSet();
     try
     {
         ds = messageSortBB.GetList("");
         this.sort.DataTextField = "sortNm";
         this.sort.DataValueField = "id";
         this.sort.DataSource = ds;
         this.sort.DataBind();
     }
     finally
     {
         messageSortBB.Dispose();
     }
 }
Пример #3
0
 /// <summary>
 /// ������������
 /// </summary>
 private void BindList()
 {
     LMessageSortBB messageSortBB = new LMessageSortBB();
     try
     {
         DataSet ds = messageSortBB.GetList("");
         this.sortNm.DataTextField = "sortNm";
         this.sortNm.DataValueField = "id";
         this.sortNm.DataSource = ds.Tables[0];
         this.sortNm.DataBind();
         this.sortNm.Items.Insert(0, new ListItem("-��ѡ��-", ""));
     }
     finally
     {
         messageSortBB.Dispose();
     }
 }