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
55
set newly added item as selected item in xam datagrid using viewmodel.
posted

Hi,

set newly added item as selected item in xam datagrid using viewmodel.

I am trying to do it in viewmodel, when adding new item to the xam list,
i am seting new item as selected item, it is working fine,
but previous selected item is not referesing.
it is showing both previous and current selected item in xamdatagrid.

Thakns and regards,

Kumraswamy

  • 138253
    Offline posted

    Hello Kumaraswamy,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

  • 138253
    Offline posted

    Hello Kumraswamy,

     

    Thank you for your post. I have been looking into it and I can say that this behavior is expected, because by default the XamDataGrid has multiple record selection. The thing you can do is either clear the XamDataGrid’s SelectedItems’ Records collection or set the XamDataGrid’s FieldLayoutSettings SelectionType Property to Single. Please let me know if this helps you or you have further questions on this matter.

     

    Looking forward for your reply.