KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
We have a custom DataGrid control that dynamically generates columns determined by an XML structure. When creating each of the columns, we're giving it a starred unit type because we want to ensure theres never any horizontal scrolling in the DataGrid. DataGridTextColumn column = new DataGridTextColumn(); column.Width = new DataGridLength(entity.DisplaySize, DataGridLengthUnitType.Star); However, we've noticed that when the DataGrid is rendered, it renders with the minimum size given to the columns, then once the DataGrid is fully rendered it resizes the columns to properly fit within the DataGrid. This is causing a flicker effect. Does anyone have any possible solutions? Maybe how to render the DataGrid in the background, then show once the columns are done fidgeting? Or any other ideas?
Tags (comma-separated)
Save Edits
Cancel