Example #1
0
 public static void Fill(this System.Windows.Forms.ComboBox cbo, object dataSource, string valueField, string textField)
 {
     cbo.DataSource    = dataSource;
     cbo.ValueMember   = valueField;
     cbo.DisplayMember = textField;
     cbo.Update();
 }