protected string GetRoles(DataRowView u)
        {
            Users.UserRow ur     = (Users.UserRow)u.Row;
            string        retVal = "";

            foreach (Users.UserRoleRow r in ur.GetUserRoleRows())
            {
                retVal += r.RoleRow.name + ", ";
            }
            if (retVal.Length > 0)
            {
                retVal = retVal.Substring(0, retVal.Length - 2);
            }
            return(retVal);
        }
        protected bool HasRole(DataRowView item)
        {
            if (user == null)
            {
                return(false);
            }

            Users.RoleRow       role  = (Users.RoleRow)item.Row;
            Users.UserRoleRow[] roles = user.GetUserRoleRows();
            foreach (Users.UserRoleRow r in roles)
            {
                if (r.name == role.name)
                {
                    return(true);
                }
            }

            return(false);
        }