public Form1() { InitializeComponent(); data = new OrderInfoCollection(); this.sfDataGrid.DataSource = data.OrdersListDetails; this.comboBoxAdv1.SelectedIndex = 0; this.comboBoxAdv1.SelectedIndexChanged += ComboBoxAdv1_SelectedIndexChanged; }
public Form1() { InitializeComponent(); data = new OrderInfoCollection(); this.sfDataGrid.DataSource = data.OrdersListDetails; this.comboBoxAdv1.SelectedIndex = 0; this.comboBoxAdv1.SelectedIndexChanged += ComboBoxAdv1_SelectedIndexChanged; this.sfDataGrid.Columns["OrderID"].AllowSorting = true; this.sfDataGrid.Columns["CustomerID"].AllowSorting = true; }