Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

How to populate a grid (form grid) of Dynamics GP using .NET

Posted on by 1,846

Hello Users,

I want some help, I want to insert line in the following mentioned grid of this form, through .net/c#. I am unable to access fields of the grid from Form reference of this form in my .net code.

Bank.JPG

Any help would be appreciated and answer will be marked as verified.

Thanks,

MN

*This post is locked for comments

  • Suggested answer
    Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: How to populate a grid (form grid) of Dynamics GP using .NET

    You cannot insert a record to a Dexterity scrolling window from Visual Studio Tools. What you can do however is insert the record in the table associated to the scrolling window, then redisplay the window itself. Most inserts rely on a simple technique: you need to look at the line sequence number of the record above and below the point of insertion, i.e., if the line sequence number of the previous record is 32768 and the subsequent one is 49152, then the record you are trying to insert between those two will have a line sequence number of (32768 + 49152)/2 = 40960. Conversely, if you want to insert a record between your newly inserted record and the record above, then your new sequence number for the record to be inserted will be (32768 + 40960)/2 = 36864, and so on.

    The good thing about Visual Studio Tools is you do not need to create ADO connections if the table is not a temp table. Take a look at msdn.microsoft.com/.../cc543577.aspx for more information on how to work with Dynamics GP tables from Visual Studio Tools.

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: How to populate a grid (form grid) of Dynamics GP using .NET

    You mean you are using VS tools? And how you referenced this form?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to populate a grid (form grid) of Dynamics GP using .NET

    you have insert a storeProcedure in the table 

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans