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
250
Removing (renew) fields
posted

On a XamDataGrid I want to use unbound fields which are added/removed based on a filtering (triggered by another control). It seems I have to remove the fields from each fieldlayout and add the new fields... but this is very inconvenient, since it causes issues after doing this four times (it becomes terribly slow!).

What are alternatives?!?!? Is there a way to clear (remove) all columns (/fields)?!?!???

  • 69686
    Verified Answer
    posted

    Hello,

    I have seen performance issues regarding adding/removing fields, because their DataType has not been set and therefore virtualization for them is not possible. Please make sure that you have set the DataType for each field so that they can be virtualized.

    If that is not working as expected in your scenario, you can set the Visibility property of the fields to Collapsed/Visible depending on the filtering.

    The third option (least recommended) is to set their width to 0.