Atozed Forums
Datasource does not map to IWDBGrid - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Datasource does not map to IWDBGrid (/thread-6026.html)



Datasource does not map to IWDBGrid - bruce.eglington@usask.ca - 04-02-2026

I have numerous queries defined in a datamodule for an Intraweb program, being used by multiple Intraweb web pages. For some reason, the predefined datasource links in the datamodule have stopped working for the individual pages. No matter what I do for re-specifying the datasource for each IWDBGrid (or indeed any database aware control like IWDBEdit), the predefined mapping no longer works and I have to explicitly code the datasource associations (for instance IWDBGrid1.Datasource := DataModule1.Query1) for every database aware control on my web pages.

Can anybody suggest how to fix this? I have tried respecifying the data columns and respecifying the predefined datasource associations but none of this works. I use Delphi 13 with Intraweb 16.1.8

Thanks

Bruce


RE: Datasource does not map to IWDBGrid - hudsonclark - 04-14-2026

This often happens when the DataModule instance isn’t the same one at runtime, especially in IntraWeb where session scope matters. Make sure your DataModule is either per-session (TIWUserSession) or properly instantiated and referenced, otherwise design-time bindings won’t resolve. Are you creating the DataModule manually anywhere or relying on auto-create?