private void _LoadWebPage() { DataTable NhomDT = WebReg.GetByType(_TypePage); lookUpEditPage.Properties.DataSource = NhomDT; lookUpEditPage.Properties.DisplayMember = "Page"; lookUpEditPage.Properties.ValueMember = "ID"; DevExpress.XtraEditors.Controls.LookUpColumnInfo colun0 = new DevExpress.XtraEditors.Controls.LookUpColumnInfo(); colun0.Caption = "Page"; colun0.FieldName = "Page"; lookUpEditPage.Properties.Columns.Add(colun0); DevExpress.XtraEditors.Controls.LookUpColumnInfo colun1 = new DevExpress.XtraEditors.Controls.LookUpColumnInfo(); colun1.Caption = "UserName"; colun1.FieldName = "UserName"; lookUpEditPage.Properties.Columns.Add(colun1); DevExpress.XtraEditors.Controls.LookUpColumnInfo colun2 = new DevExpress.XtraEditors.Controls.LookUpColumnInfo(); colun2.Caption = "Password"; colun2.FieldName = "Password"; colun2.Width = 40; lookUpEditPage.Properties.Columns.Add(colun2); }
private void _LoadDSNHom() { DataTable list = WebReg.GetByType(_Type); gridControl1.DataSource = list; }