예제 #1
0
        //Secretary Section
        //Load

        private void dataGrid1_Loaded(object sender, RoutedEventArgs e)
        {
            DataSet1TableAdapters.secretariesTableAdapter secAdp = new DataSet1TableAdapters.secretariesTableAdapter();
            DataTable dt = secAdp.getSecretaries();

            this.dataGrid1.ItemsSource = dt.DefaultView;
        }
예제 #2
0
        public void updateSec()
        {
            DataSet1TableAdapters.secretariesTableAdapter secAdp = new DataSet1TableAdapters.secretariesTableAdapter();
            DataTable dt = secAdp.getSecretaries();

            this.dataGrid1.ItemsSource = dt.DefaultView;
        }