0
The question is the same as the title, I have a ComboBox
called txtProfissional
and set up the same way:
txtProfissional.DataSource = modelOff.profissionals.Where(p => p.idUnidade == oUsuario.unidade);
txtProfissional.DisplayMember = "nome";
txtProfissional.ValueMember = "id";
My intention is that on the property DisplayMember
the columns are listed nome
and funcao
.
Any hint?
I access data from a database, and there is no such column.
– Italo Rodrigo
That’s why I told you to create the property, @Italorodrigo
– Jéf Bueno