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
415
Couple small questions on xamdatagrid
posted

2 small things:

1. How do I set the column width to autofit the content (longest field is ok)

2. How do I disable the expandable row icon column on the left?  I played with the FieldSettings, setting ExpandableFieldRecordHeaderDisplayMode to always off, but that didnt seem to have any effect.

Thanks!

  • 69686
    Suggested Answer
    posted

    Hello,

    1) We have such autofit content feature in the XamDataGrid vol9.2.

    2) This is controlled by the ExpansionIndicatorDisplayMode of the FieldLayoutSettings, like this:

     

                xamDataGrid1.FieldLayoutSettings.ExpansionIndicatorDisplayMode = Infragistics.Windows.DataPresenter.ExpansionIndicatorDisplayMode.Never;