private void Students_Loaded(object sender, RoutedEventArgs e) { DataSet1 ds = new DataSet1(); StudentTableAdapter sta = new StudentTableAdapter(); sta.Fill(ds.Student); //Заполняем datagrid Students1.ItemsSource = ds.Student; }
public void FillDasetAndView() { sta.Fill(dt); dv = new DataView(dt); cm = (CurrencyManager)BindingContext[dv]; }