public MainPage() { InitializeComponent(); dataGrid1.Columns.Add(new DataGridTextColumn { Header = "Year", Binding = new System.Windows.Data.Binding("year") }); dataGrid1.Columns.Add(new DataGridTextColumn { Header = "Running", Binding = new System.Windows.Data.Binding("One") }); dataGrid1.Columns.Add(new DataGridTextColumn { Header = "Idle", Binding = new System.Windows.Data.Binding("Two") }); dataGrid1.Columns.Add(new DataGridTextColumn { Header = "Turned Off", Binding = new System.Windows.Data.Binding("Three") }); }
void client_DoWorkCompleted(object sender, DoWorkCompletedEventArgs e) { dataGrid1.ItemsSource = list; }
list
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)