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
220
Automaticall expand a field to fill remaining gap
posted

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:




Parents
  • 34810
    Suggested Answer
    Offline posted

    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,
    Andrew
    Associate Developer

Reply Children
No Data