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
275
How to add checkbox on xamlDataGrid while AutoGenerate = true
posted

I have a xmalDataGrid binded with a collection data and columns are generated automatically. I wanna add a checkbox on grid for each row. Since autogenarate is ture I don;t have place to specify <checkbox> in FieldsLayout......any workaround for this?

Appreciate any suggestion :)

  • 69686
    Suggested Answer
    posted

    Hello,

    If you want the checkbox in the Record Selector then you need to create a style (with no x:key), which targets the RecordSelector. If you want it in the field/label you can craete a style ( with x:key), which targets the LabelPresenter and set this style to the FieldLayouts[] . Field[] . Settings . LabelPresenterStyle.

    Alex.