コード例 #1
0
        private void treeGroupUser_RowCellClick(object sender, DevExpress.XtraTreeList.RowCellClickEventArgs e)
        {
            var    pra = e.Node.ParentNode; // lấy node cha
            string namePraNode;

            if (pra == null)
            {
                namePraNode = e.Node.GetValue(0).ToString();
            }
            else
            {
                namePraNode = pra.GetValue(0).ToString();
            }

            List <GroupUser> listGroup = grUserBUS.getGroupUserFromName(namePraNode);

            listUser = user_BUS.GetUserGroup(listGroup[0].GR_ID, listGroup[0].Group_Name);
            gridGroupUser.DataSource = listGroup;
        }