示例#1
0
    private void getData()
    {
        DataTable objData = objNewsGroup.getList();

        dtlData.DataSource = objData.DefaultView;
        dtlData.DataBind();
    }
示例#2
0
    private void getData()
    {
        DataTable objData = objNewsGroup.getList();

        //dtlAccount.DataSource = objData.DefaultView;
        //dtlAccount.DataBind();

        cpData.MaxPages      = 1000;
        cpData.PageSize      = 15;
        cpData.DataSource    = objData.DefaultView;
        cpData.BindToControl = dtlData;
        dtlData.DataSource   = cpData.DataSourcePaged;
        dtlData.DataBind();
        index = 1;
    }