Click here to Skip to main content
15,883,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,
I have a datagrid with AutoGenerateColumns property set to true. However, I have to change text of some of the columns headers and change the display index of other columns. This is causing the datagrid to flicker (for a fraction of a second, one can notice the columns changing).
Is there a way to keep my grid hidden until all data is loaded and columns changed before displaying it?
Thank you

What I have tried:

Tried to set visibility to hidden by default and then change it to visible when the AutoGeneratedColumns event fires with no luck.
Posted
Comments
[no name] 12-Aug-16 3:15am    
For this Situation I do not see _any_flickering:
1.) Data Binding in CTor of the hosting Window of the grid
2.) Arrange Columns in dataGrid_Loaded
Does this help or do you have another sequence/situation for these two actions?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900