Hello good afternoon.
I have a problem with a DataGridViewComboBoxColumn that I have added to my datagriview, it already has data that I bring from the database.
When I select an item and when passing to the next cell, the value that it had, for example, I select Sales instead of leaving Sales in the cell, it changes to its ID. This happens when I move to the next cell.
Please what should I change or what would be my mistake.
please help me solve my problem thank you very much.
this is the code with which I load the data
- private void CargarGrupo()
- {
- GrupoId.DataSource = tblGrupoComprasGasto.ListaGrupoComprasEgresos();
- GrupoId.ValueMember = "Id";
- GrupoId.DisplayMember = "NombreGrupo";
-
- }
Thank you very much for your collaboration
R.M.