Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2385
automatically adjust column width
posted

The data records have different length. I want to set the column width as the longest  data length. Can xamDataGrid adjust the Field length automatically? If yes, how?

Parents
No Data
Reply
  • 69686
    Verified Answer
    posted

    Hello,

    The XamDataGrid will automatically increase the width of a field when you are typing in a cell, but you would have to set the Width property of the Field to Auto. When the AutoFit property is true, when one Field increases, the XamDataGrid will decrease the widths of the rest of the fields. Other than that, you can call the PerformAutoSize() method of the field to size it manually.

Children