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
90
Need ActiveRecord to be set to the last record by default
posted

Currently when the application launches, the active record highlighted inside the XamDataGrid is the first record by default. However, I am looking to set it to the last record by default. Please suggest a way to handle this. 

  • 34430
    Offline posted

    Hello Ashish,

    In order to achieve your requirement, I would recommend handling the Loaded event of the XamDataGrid and calling the following code inside of its handler, where “xdg1” is the XamDataGrid:

    xdg1.ActiveRecord = xdg1.Records.Last();

    Please let me know if you have any other questions or concerns on this matter.