private void CarrgearEmpreendimentos() { cbxEmpreendimento.Properties.DataSource = c_Empreendimento.CarregarLoteamentoObra("2"); cbxEmpreendimento.Properties.DisplayMember = "nome"; cbxEmpreendimento.Properties.ValueMember = "idloteamento"; if (_AlterarCad == false) { cbxEmpreendimento.ItemIndex = -1; } else { } }
private void CarregarLoteamentos() { DataTable dtLoteamento = new DataTable(); dtLoteamento = c_loteamento.CarregarLoteamentoObra("3"); LookUpEditLoteamento.Properties.DataSource = dtLoteamento; LookUpEditLoteamento.Properties.DisplayMember = "nome"; LookUpEditLoteamento.Properties.ValueMember = "idloteamento"; if (_alterarCad == false) { LookUpEditLoteamento.ItemIndex = -1; } else { } }
private void CarregarEmpreendimentos() { DataTable dte = new DataTable(); dte = c_loteamento.CarregarLoteamentoObra("1"); lookUpEditEmpreendimento.Properties.DataSource = dte; lookUpEditEmpreendimento.Properties.DisplayMember = "nome"; lookUpEditEmpreendimento.Properties.ValueMember = "idloteamento"; if (_Alterar == false) { lookUpEditEmpreendimento.ItemIndex = -1; } else { } }