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(); }
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(); }