Example #1
0
        private void DataGridTr_Loaded(object sender, RoutedEventArgs e)
        {
            DataSet1TableAdapters.studentsTableAdapter stAdp = new DataSet1TableAdapters.studentsTableAdapter();
            DataTable dt = stAdp.getCsharpSt();

            DataGridTr.ItemsSource = dt.DefaultView;
        }
Example #2
0
        public void updateCsRecords()
        {
            DataSet1TableAdapters.studentsTableAdapter stAdp = new DataSet1TableAdapters.studentsTableAdapter();
            DataTable dt = stAdp.getCsharpSt();

            DataG1.ItemsSource = dt.DefaultView;
        }