Hi,
I have a Datagrid with dynamic count of column (sometimes have 5 columns, sometimes 12,...) and I don't know what type data are inside (sometimes DateTime, sometimes string,...), but every time are in one column same data (not mixed in one column). So I cannot set a fixed width on the columns.
So I want to use 'ColumnSizer' with 'Auto' .... but with 2000 rows is too slow. I think it is unnecessary to calculate the size of each cell in each row
1) Is any way how to calculate width only on the first row (or first 10 rows) and others will skip with calculating?
2) Is any way how to combine two property (Auto + Size to a header) => bigger width win
Alternatively:
3) The next option is How to reset size after data are completely loaded (completely shown) to Datagrid (on button click is resize very fast). But I don't know how to recognize completely load data. Is there any event on DataGrid?