Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to change the cursor on grid records on clicking of up & down buttons

(1) ShareShare
ReportReport
Posted on by 64
Hi All,
I have a requirement to change the cursor on grid records up & down while clicking on up & down buttons on form.
let say, I have 5 records & 1st is the currently selected record , so on clicking of down button, only the cursor should move to the next record instead of actual record & same should work for down button.
It is working by creating command buttons & these up & down command available but I want it using x++.
 
Thanks & Regards,
Rahul
  • Rahul Dahiya Profile Picture
    64 on at
    How to change the cursor on grid records on clicking of up & down buttons
    Hi Girish,
    Thanks , these dataSource methods worked.
     
    Regards,
    Rahul
  • Verified answer
    GirishS Profile Picture
    27,825 Moderator on at
    How to change the cursor on grid records on clicking of up & down buttons
    I found the below methods from FormDataSource. next and prev methods.
     
    Just call FormDataSource.next() in the clicked method of the down button.
    Similarly, just call FormDataSource.prev in the clicked method of the up button.
     
    Thanks,
    Girish S.
  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    How to change the cursor on grid records on clicking of up & down buttons
    Hi Rahul,
     
    You can use findRecord to set it as the current record. Refer to the below Microsoft documentation.
    But how are you going to find out which record is next to current record and which record is above to current record?
    I think it's impossible to do that using X++. If it's working with command button just go with it instead of X++ coding.
     
    Thanks,
    Girish S.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 565

#2
Martin Dráb Profile Picture

Martin Dráb 536 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 402 Super User 2025 Season 1

Product updates

Dynamics 365 release plans