コード例 #1
0
ファイル: listadmin.ascx.cs プロジェクト: vietnnit/dataenergy
    protected void ViewAdmin()
    {
        AdminBSO  adminBSO = new AdminBSO();
        DataTable table    = adminBSO.GetAllAdminRoles();
        DataView  dataView = new DataView(table);

        //dataView.RowFilter = "Admin_Username <> 'administrator' and Admin_Username <> 'Administrator'";
        dataView.RowFilter = "Admin_Username not in ('administrator','Administrator')";
        dataView.Sort      = "Admin_Username ASC";
        DataTable dataTable = dataView.ToTable();
        commonBSO commonBSO = new commonBSO();

        commonBSO.FillToGridView(grvAdmin, dataTable);
    }