private void CarregarLoteamentos() { DataTable dtLoteamentos = new DataTable(); dtLoteamentos = c_loteamento.CarregarLoteamentos(); gridControl1.DataSource = dtLoteamentos; gridView1.RefreshData(); }
private void CarregarCbxLoteamentos() { cbxLoteamento.Properties.DataSource = c_loteamento.CarregarLoteamentos(); cbxLoteamento.Properties.DisplayMember = "nome"; cbxLoteamento.Properties.ValueMember = "idloteamento"; if (_AlteraCad == false) { cbxLoteamento.ItemIndex = -1; } }