Пример #1
0
        private void MiCsvLoadClick(object sender, RoutedEventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog {
                Filter = "CSV Files|*.csv"
            };

            openFileDialog.ShowDialog();

            MyDataTable = LoadDataTabletFromCSVFile(openFileDialog.FileName);

            DGrid.SetBinding(ItemsControl.ItemsSourceProperty, new Binding {
                Source = MyDataTable
            });
        }