Hi,
I just noticed a terrible bug when trying to bind a list of business objects on a DropDownList :
Setting the DataSource erases both property values previously set on the designer.
Setting the DisplayMember through code works but as soon as I try to set ValueMember, it erases DisplayMember and doesn't set ValueMember either !!
ddlLines.DataSource = lineService.GetAllLines();
ddlLines.DisplayMember = nameof(Line.LineName);
ddlLines.ValueMember = nameof(Line.LineId);
Here is the class :
public class Line
{
[BrowsableAttribute(false)]
public int LineId { get; set; }
[DisplayName("Souche")]
[Column(Order = 0)]
public string LineName { get; set; }
}
This happens on a DropDownList inserted on a form and also inside a RibbonControl
Is this serious ??
Using .Net 7 with Telerik for Winforms 2022.3.1109