var data = myData.Select(oneData => new { Value = oneData.Value, Text = oneData.Name}).ToList(); cbo.ValueMember = "Value"; cbo.DisplayMember = "Text"; cbo.DataSource = data;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)