private void Window_Loaded(object sender, RoutedEventArgs e) { ShowRFactory Facobj = new ShowRFactory(); List <ShowRModelView> list = Facobj.GetAll(); SRGrid.ItemsSource = list; }
private void Window_Loaded(object sender, RoutedEventArgs e) { ShowRFactory Fobj = new ShowRFactory(); List <ShowRModelView> list = Fobj.GetAll(); cbSR.ItemsSource = list; cbSR.DisplayMemberPath = "ShowRName"; cbSR.SelectedValuePath = "S_ID"; }