Please see the attached code to understand my problem.
=========================================
When I run the attached project (which is a temporary standalone for testing purposes), I experience the correct full functionality, which is:
1) The grid displays the entire query, and all the rows
2) I can delete rows from the database AND the spreadsheet by hitting the Delete button
3) The spreadsheet is refreshed after delete...
HOWEVER - when I integrate it into my entire project, the rows delete from the database, but not from the screen, so in the full project, functionality points 1 and part of 2 are effective.
What I am wondering (and you need not know the semantics of the data control I am using - the Farpoint 3.0 Spread Grid) is should I create a module for the standalone when I choose to integrate it with my entire project?
Would encapsulating the Delete functionality of this project within a module enable it to work as it does as a standalone?
I appreciate your help. If you need ANY further clarification, please e-mail me, this is a serious issue.
I think really to reiterate what Jethro said, "Are you going to use the module in more than one project?" I think wether you use it as a standalone or reuse it, it really makes no diffrence. I think the problem that is occuring is in the way you are integrating the control into your existing application.
Was just trying to cut that out of the equation Dilenger, (and stop waving that gun at me..................oh it ain't a gun...damn this modern web cam technology).
Mike has indicated that he is using a third party control, which is giving him problems. Without having the control, will probably not be able to help him very much. Downloading his zip at the moment to see what is what.
Appear to have two of everything, (different sizes however), except for frmDeleteBonds and frmDeleteTransaction. Presume am going to get overwriting when extra them.
I have never used a module before. You're right, I am having trouble with the integration of the standalone into the project itself. I designed it as a standalone so that I could just get the functionality to work, however if I simply import the forms and the code into the entire project, it deletes from the database, and not from the screen, yet if I close the form (in run-time), and re-open it, the data will be updated.
I have tried to call the control's refresh method after deleting a row, but to no avail.
If I can somehow code a module that would enable one project to link to another, that would be perfect....I just need some help in understanding how to do.
Er, got our resident guru to have a look at the download last night. He concurs, there is a problem with. Would appear that two separate projects have been given the same name? Is this your problem, or have we somehow cocked up the zip file
Also have a .dll tutorial some one sent me yesterday for review, if ya want a copy. Haven';t had a chance to review it yet, but apparent shows dll creation and call by another project. And no ain't a guru, and ain't writting a coding book. The guys in the office figure if l can understand it then anyone can.
I like that sort of team spirit, and belief in co-workers