Пример #1
0
        private void PopulateSType()
        {
            DataTable dtSType = new DataTable();

            dtSType = VendorBL.PopulateSType();
            cboSType.Properties.DataSource = dtSType;
            cboSType.Properties.ForceInitialize();
            cboSType.Properties.PopulateColumns();
            cboSType.Properties.ValueMember   = "ServiceTypeId";
            cboSType.Properties.DisplayMember = "ServiceType";
            cboSType.Properties.Columns["ServiceTypeId"].Visible = false;
            cboSType.Properties.ShowHeader = false;
            cboSType.Properties.ShowFooter = false;
            cboSType.EditValue             = 0;
        }