piiguu Posted April 21, 2010 Report Share Posted April 21, 2010 Hi Is there a way of allowing the columns in the data grid to be sized by the actual length of that column's header text instead of the largest header there is? Can the header texts be wrapped? Thanks Quote Link to comment Share on other sites More sharing options...
RandyJ Posted April 26, 2010 Report Share Posted April 26, 2010 Hi, Try enabling the autosize property of the DataGrid. The DataGrid columns should resize automatically to fit your data. chart1.DataGrid.AutoSize = false; As for your second question, I am afraid this is not possible. The datagrid does not have multi-line header capabilities. Regards, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.