web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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 72
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
I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,843 Moderator on at
    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.
  • Verified answer
    GirishS Profile Picture
    27,843 Moderator on at
    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.
  • Rahul Dahiya Profile Picture
    72 on at
    Hi Girish,
    Thanks , these dataSource methods worked.
     
    Regards,
    Rahul

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 461 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 458 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 450

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans