Exemplo n.º 1
0
    private void BindSecurityGrid()
    {
        DataTable dtSecurity = employee.GetSecurityGroups(UserID);

        if (dtSecurity != null && dtSecurity.Rows.Count > 0)
        {
            gvSecurityGroups.DataSource = dtSecurity;
            gvSecurityGroups.DataBind();
        }
        else
        {
            gvSecurityGroups.DataSource = "";
            gvSecurityGroups.DataBind();
        }
    }