So I can tell which fields are visible on the screen by using the GetCellsInView method, but when you do a group by field, this returns nothing unless you expand one of the groups.
Is there a way to determine which fields are visible WITHOUT having to expand one of these records please?
Thanks,Doug Rees
Polo Ralph Lauren
Hello Doug,
Thank you for your post. I have been looking into it and I can say that if there is no group expanded you are not able to get the Fields that are gone be in view. I can suggest you either handle the XamDataGrid’s RecordExpnaded event and call the GetCellsInview there or handle the CellsInViewChanged event. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Yes this isn't ideal as it requires waiting for the records to be expanded.
In the end I looked at your source code and found a method marked as internal that does what we need on the Virtualizing panel called something like getfieldsinview.
It would be good if this method could be made public instead of internal, or perhaps made part of the grid itself for ease of use.