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?
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.
Thanks. I try Width = "Auto". It works.