If a column is sized with InitialAuto, which will also happen if they double click on the column separator to auto size the column, how do you determine the actual size of the column?
The column's ActualWidth property is 0.0 (zero) in this case, and the Width and WidthResolved properties only tell you that it's sized to InitialAuto. I need the real width in pixels that the column is actually sized to.
Thanks,
Mike
HI,
You could get the size of the the first cell and used that width.
Here a code snippet:
CellValuePresenter cvp = CellValuePresenter.FromCell(xgrid1.ActiveCell);
MessageBox.Show(cvp.ActualWidth.ToString());
Sincerely,
Matt
Developer Support Engineer
That seems to be a WPF class for XamDataGrid, not a Silverlight class for XamGrid (which is what I'm asking about).
Anything for Silverlight?