Exemplo n.º 1
0
        private void LoadDSCV()
        {
            List <ChucVu_DTO> lsChucVu = new List <ChucVu_DTO>();

            lsChucVu = cvBUS.DanhSachCV();

            lke_chucVu.Properties.DataSource    = lsChucVu;
            lke_chucVu.Properties.DisplayMember = "MaCV";
            lke_chucVu.Properties.ValueMember   = "MaCV";
        }
Exemplo n.º 2
0
        private void LoadDSCV()
        {
            lsChucVu = new List <ChucVu_DTO>();
            lsChucVu = cvBUS.DanhSachCV();

            lke_chucVu.Properties.DataSource    = lsChucVu;
            lke_chucVu.Properties.DisplayMember = "MaCV";
            lke_chucVu.Properties.ValueMember   = "MaCV";

            lke_chucVu.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("MaCV", "Mã Chức Vụ", 10));
            lke_chucVu.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("TenCV", "Tên Chức Vụ", 20));
        }