예제 #1
0
        private void BindRoleInfoGrid()
        {
            objRoleBiz = new RoleBiz();
            DataTable dtRoleList = new DataTable();

            dtRoleList = objRoleBiz.GetUserRoleInfo(objRole);
            gvDisplayRoleInfo.DataSource = dtRoleList;
            gvDisplayRoleInfo.DataBind();
            gvDisplayRoleInfo.ShowHeaderWhenEmpty = true;
            gvDisplayRoleInfo.EmptyDataText       = "There is no matching records found!";
        }
예제 #2
0
        private void BindRoleInfoGrid()
        {
            objRoleBiz = new RoleBiz();
            DataTable dtRoleList = new DataTable();

            dtRoleList = objRoleBiz.GetUserRoleInfo(objRole);
            gvDisplayRoleInfo.DataSource = dtRoleList;
            gvDisplayRoleInfo.DataBind();
            gvDisplayRoleInfo.ShowHeaderWhenEmpty = true;
            gvDisplayRoleInfo.EmptyDataText       = "There is no matching records found!";

            gvDisplayRoleInfo.AlternatingRowStyle.BackColor = System.Drawing.Color.AliceBlue;
            gvDisplayRoleInfo.SelectedRowStyle.BackColor    = System.Drawing.Color.DarkKhaki;
        }