When I set the SelectedItem... it does not change... any ideas... thanks
I'm trying to find a specific item in grid and set that item to the SelectedItem.. Is the following code the correct method...?
The object is found but the selecteditem does not get set.
List<inv_mstr> lstFind = this.grid.ItemsSource as List<inv_mstr>;
List<inv_mstr> lstFind2 = (lstFind.Where(i => i.inv_no == Convert.ToInt32(sch.ApptID)).Take(1)).ToList();
this.grid.SelectedItem = lstFind2.Take(1);