1 Reply Latest reply on Sep 19, 2006 10:07 AM by jtan

    DataGridColumn Autosize

    dishmael Level 1
      Is there a way to have the DataGridColumn objects autosize or does anyone have code to autosize a column? I have a DataGrid with 5 or 6 columns, each equally spaced. I know I can set the value of each column, but that would be a guess on the max size of data in each column. Thoughts?
        • 1. Re: DataGridColumn Autosize
          jtan
          David,

          You can set percentWidth on your DataGrid. This will make the entire DataGrid grow whenever its container grows. If you do not set width on any of the DataGrid columns, then, they will all stay the same width.

          HTH,
          Joan Lafferty