none
DataGrid AutoSize Columns

    Question

  • Hello,

    I am developing for Windows Mobile 5.
    I have a DataGrid and am trying to autosize the columns. As the data is bound at run time and contents can vary, I do not wish to hard code the width of the columns.

    Is there a column autosize property that I can use?

    Hope somebody can help =)

    Many Thanks
    Tuesday, February 24, 2009 2:42 PM

Answers

  • There’s no such property and auto sizing is not directly supported. You would need to measure cells yourself and change column size manually. That is doable but involves significant amount of work.
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, February 24, 2009 5:07 PM

All replies

  • There’s no such property and auto sizing is not directly supported. You would need to measure cells yourself and change column size manually. That is doable but involves significant amount of work.
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, February 24, 2009 5:07 PM
  • Okay Thanks =)
    Wednesday, February 25, 2009 10:02 AM