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
830
Select the first row after filtering
posted

I have a collection in a XamDataGrid. I have a few conditios to filter the collection from the UI. If the ActiveRecord is not in the new filtered collection, it remains as active. I want to select the first record of the filtered collection, the collection that is shown.

It seems that I need to do something like this.myXamDataGrid.ActiveRecord = ????

How can I select the first record shown in the grid after a filtering?

Thanks in advance.

  • 69686
    Suggested Answer
    posted

    Hello,

    In order to get the currently visible records, you can call the GetRecordsInView() method of the XamDataGrid. You can do this in the RecordFilterChanged event.