Is there a way to automatically expand the field width to fill the remaining gap in a view.
I tried to use Width="Auto" and it doesn't work. I also tried Width="*" but then again, it doesn't work.
Here are my field definitions with the field that I would like to expand shown in bold:
Hello Andrew,
The AutoFit="True" did the trick!
I though that it needed to be set to false in order not to resize all fields. It seems that when you set absolute width on a field using Width="100" for example, the field wont be resized automatically.
I will also play around with the AutoFitMode property when I have time.
Thanks, case clear!
Hello Jean-Marc Da Pozzo,
It is rather strange that the Width = "*" setting is not working for you, as I would expect that to work as it is working on my end, but I have an alternate recommendation for you in this case.
I would recommend that you set the AutoFit property on the XamDataGrid to "true" as this will try to fit all of the Fields in your grid into the width of the grid. You can modify the different AutoFit options by setting the XamDataGrid.FieldLayoutSettings.AutoFitMode property. You can find a description of each of the enumerations that are valid to use with the AutoFitMode property here: https://ko.infragistics.com/help/wpf/infragisticswpf.datapresenter~infragistics.windows.datapresenter.autofitmode.
I hope this helps. Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer