Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Datagrid GetContainerFromItem returns null

$
0
0
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.

Viewing all articles
Browse latest Browse all 2157

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>