private void Window_Loaded(object sender, RoutedEventArgs e) { ComputingResourcesDataSet computingResourcesDataSet = ((ComputingResourcesDataSet)(this.FindResource("computingResourcesDataSet"))); resources.Fill(computingResourcesDataSet.Resources); CollectionViewSource resourcesViewSource = ((CollectionViewSource)(this.FindResource("resourcesViewSource"))); resourcesViewSource.View.MoveCurrentToFirst(); buildResources(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { ComputingResourcesDataSet computingResourcesDataSet = ((ComputingResourcesDataSet)(this.FindResource("computingResourcesDataSet"))); // Load data into the table Renter. You can modify this code as needed. renters.Fill(computingResourcesDataSet.Renter); CollectionViewSource renterViewSource = ((CollectionViewSource)(this.FindResource("renterViewSource"))); renterViewSource.View.MoveCurrentToFirst(); buildRenters(); }