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

New Post: Is it possible to get notified in datagridcontrol, when realized cells/columns/rows have changed?

$
0
0
I would like to utilize the datagridcontrol with virtualization and databound itemssource and provide a possibility to have the columns always as narrow as possible. Therefore I tried to call the ColumnBase.GetFittedWidth() method on occurance of the ItemsSourceHasChanged / Loaded / DataContextChanged event. However this seems to be to early, since I receive always -1 as the result, so I guess at this time there are no cells realized yet. Is there any way to know, when the realized items have changed, so I can set the width of the columns accordingly?

Thanks in advance.

Viewing all articles
Browse latest Browse all 2157

Trending Articles



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