Topic: Updating a grid from a script procedure or function

I implemented a simple CSV import function, att its end I want to update the corresponding grid buttt seems I am not able tto do that.
This is my script sequence trying to update it:

    Application.ProcessMessages;
    Form1.tblGridSuppliers.dbUpdate;
    Form1.tblGridSuppliers.Refresh;

is anything else I need to do to show the imported records on the grid?

Re: Updating a grid from a script procedure or function

If TableGrid component configured correctly, you should see imported record after call method

Form1.tblGridSuppliers.dbUpdate;

here you can find examples, how to import/export csv files
http://myvisualdatabase.com/forum/viewtopic.php?id=3620
http://myvisualdatabase.com/forum/viewtopic.php?id=1448

Dmitry.