Jump to content


Photo

How to get NextGrid6 from NxColumn ?


  • Please log in to reply
2 replies to this topic

#1 OlafSt

OlafSt
  • Members
  • 14 posts

Posted 18 January 2018 - 12:17 PM

Hello Friends,

 

I'm porting an application from NextGrid5 to NextGrid6. We're using the Footer a lot, and while porting we're encountering a Problem.

 

In NextGrid5 there was the Event "OnCalculateFooter", which is gone completely. Now we have OnCalculated-Event from the Column, which is a lot more uncomfortable.

 

For our calculations on the footer we need access to another Column (e.g. calculating Col[2] * Col[3], where this Result shall be displayed in Footer Col[3]). As we have half a dozen Grids on our Form and they all need the same calculation for this specific Row, we could connect this Eventhandler to each Grid.

 

But: There is no chance to get the Grid from the Column. The Sender-Parameter is the TNxColumn6, and this one has no "getGrid" or something like this... How do we get the Grid from this Column ? Otherwise we have to duplicate our Code 6 times just to get to know what Grid we're calculating for.

 

There is something else: Using these Interfaces (like INxCell) may be very handy - but it makes debuggung and use of Delphis Inspector just terrible.



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 18 January 2018 - 09:26 PM

Hi,

I just added missing event. It's same as in v5. But now you will have both in column and global like in v5.

I will re-upload files now. Please tell me if is better.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 OlafSt

OlafSt
  • Members
  • 14 posts

Posted 22 January 2018 - 06:23 PM

Thank you, Boki. This helps a lot ;)






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users