thielj / MetroFramework

Metro UI of Windows 8 for .NET Windows Forms applications
http://thielj.github.io/MetroFramework
Other
396 stars 225 forks source link

MetroComboBox databinding broken when Sort property is set to true #60

Open vishnoor opened 8 years ago

vishnoor commented 8 years ago

If the Sort property of a MetroComboBox is set to true and the control is databound then the DisplayValue is shown as the System.ToString() value of the bound object.

e.g. class vehicle { public string Wheels {get; set;} public string Engine {get; set;} }

DisplayValue = Wheels, then combobox shows Myproject.Models.Wheel