You need to set the
.DisplayMember
property to "NombreModeloInsumo", otherwise the control treats the elements of the IList as the objects that should be displayed. But the elements of the IList are of the "anonymous type" that you construct with the
select new
-statement your LINQ-query and the value that should be editable is contained therein in the NombreModeloInsumo-property.
gleNombreModelo.Properties.DataSource = new BindingSource(consultaModeloInsumosVerdadera, "");
gleNombreModelo.Properties.DisplayMember = "NombreModeloInsumo";
There's also a
.ValueMember
-property which often is used in conjunction with
.DisplayMember
and might be of interest to you. Take a look at the documentation:
Online Documentation - Developer Express Inc.[
^]