public void HienThiComboBox(ComboBox comboBox)
        {
            DataTable m_DT = m_LoaiNguoiDungData.LayDSLoaiNguoiDung();

            comboBox.DataSource    = m_DT;
            comboBox.DisplayMember = "TENQUYEN";
            comboBox.ValueMember   = "MAQUYEN";
        }
Exemple #2
0
        public DataGridViewComboBoxColumn LoadComboBoxColumn()
        {
            DataGridViewComboBoxColumn col = new DataGridViewComboBoxColumn();

            col.DataSource       = data.LayDSLoaiNguoiDung();
            col.DisplayMember    = "LoaiNguoiDung";
            col.ValueMember      = "LoaiNguoiDung";
            col.HeaderText       = "Phân quyền";
            col.DataPropertyName = "LoaiNguoiDung";
            return(col);
        }
Exemple #3
0
 public void HienThiComboBox(ComboBox combobox)
 {
     combobox.DataSource    = m_LoaiNguoiDungData.LayDSLoaiNguoiDung();
     combobox.DisplayMember = "TenLoaiND";
     combobox.ValueMember   = "MaLoaiND";
 }