ODGrid.Rows update

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
dcrider
Posts: 67
Joined: Sun Sep 29, 2019 11:03 am
Contact:

ODGrid.Rows update

Post by dcrider » Tue Dec 17, 2019 12:23 pm

We are currently in the process of migrating our existing plugins to v19.3 in anticipation of us upgrading to that version once we've tested everything. One plugin references

Code: Select all

gridPayPlan.Rows.Count
(gridPayPlan being an object of type ODGrid) and Visual Studio provides this error message:

Code: Select all

'ODGrid' does not contain a definition for 'Rows' and no accessible extension method 'Rows' accepting a first argument of type 'ODGrid' could be found (are you missing a using directive or an assembly reference?)
Am I to be using ListGridRows and call the Count method on that returned list? Was ODGrid.Rows replaced with ODGrid.ListGridRows?

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: ODGrid.Rows update

Post by cmcgehee » Tue Dec 17, 2019 12:39 pm

Yes, you can replace all your references to ODGrid.Rows with ODGrid.ListGridRows.
Chris McGehee
Open Dental Software
http://www.opendental.com

User avatar
dcrider
Posts: 67
Joined: Sun Sep 29, 2019 11:03 am
Contact:

Re: ODGrid.Rows update

Post by dcrider » Tue Dec 17, 2019 12:45 pm

Thank you for the quick reply!

Post Reply