How come is the ActualWidth
of a DataGridColumn
is not affected by changing the value of its Width
property but it is when I change the value of its MinWidth
? In other words how does ActualWidth
get computed or changed ?
Asked
Active
Viewed 402 times
0

Dave Clemmer
- 3,741
- 12
- 49
- 72

smichaud
- 326
- 2
- 12
1 Answers
0
There is actually a difference between using:
double width = 25.0;
myDataGridColumn.Width = width;
and:
double width = 25.0;
myDataGridColumn.Width = new DataGridLength(width, DataGridLengthUnitType.Pixel);
The latest activates the recomputing of ActualWidth
but not the first one.
Don't know why.

Dave Clemmer
- 3,741
- 12
- 49
- 72

smichaud
- 326
- 2
- 12