Passing QDataGrid Data to a method or function

Login or register to post comments
3 replies [Last post]
profnotime's picture
Offline
Joined: 01/13/2009

Good Day Qcubers,

Please I have a datagrid rendered in a QPanel just like its done in the auto-generated dashboard. Now the task is that I wish to forward the displayed data (filtered by date) to an email list.

The problem I have right now is how to make the displayed data in the datagrid control available in the function for sending the email. I would appreciate any help on this please.

Thanks as usual!

Offline
Joined: 03/31/2008

During your data bind function, you set the DataSource to some array, just remember that array (in session, form property, etc), and use it again later.

profnotime's picture
Offline
Joined: 01/13/2009

Sorry Please, I don't get that. I am using the generated Ajax dashboard, does this mean that I'd have to look for the exact point where the data_bind was done and make some changes?

Offline
Joined: 03/31/2008

That would be easiest, yes. You can override the metacontrols and/or panels as needed to accomplish this storage.