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
200
deselect row of xamgrid
posted

Hello

I have multiple xamgrid on one xaml form. I am facing problem, if I select a row of one xamGird and move to another xamGrid then selected row doesn't not deselect automatically and both grid rows looks selected which is a kind of weird.

Could you help me to find a solution that one row should appear selected of focused grid?

Parents
No Data
Reply
  • 16495
    Verified Answer
    Offline posted

    Hello Amit,

    Thank you for your post.

    I have been investigating your issue and what I can suggest is to  handle the LostKeyboardFocus event for each XamGrid. In the event handler you can use e.NewFocus  method to determine where is the new focus. If is it outside of the XamGrid, you can loops all records and set the IsSelected propriety’s of active record to false.  I created a short sample application based on your scenario  to show you how you can achieve your requirement.

     

    Please let me know of you need any further assistance on the matter.

    DeselectRow.zip
Children