I'm calling GetContainerFromItem, but for some reason, it's returning null. The item is in view and should have a valid container. However, when I was debugging this, I threw a test MessageBox.Show() just prior to the GetContainerFromItem call, and that allowed the function to return proper results, but as soon as I take out the MessageBox, the call fails again.
What could cause this sort of behaviour? Does the MessageBox trigger something from the datagrid that would allow the call to go through properly? GetContainerFromIndex also gives similar results.
What could cause this sort of behaviour? Does the MessageBox trigger something from the datagrid that would allow the call to go through properly? GetContainerFromIndex also gives similar results.