Results 1 to 2 of 2

Thread: datagrid refresh

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    17

    Post

    Hi all,

    I use the data environment to retreive data from db and put them onto a datagrid.

    everytime I start my application and the old result from the last time will also display on the datagrid. Seems like the result stays in memory!!!

    someone suggest me to refresh my dataconection like
    Data1.refresh

    my data environment name is 'DEMAIN'
    and the connection is named 'CONNECTION1'
    I tried but found no such refresh command for them
    the only thing I can refresh is the datagrid but it's not earsing the previous result.

    Any suggestion?
    Many thanks.


  2. #2
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281

    Post

    Hello,

    Make sure to close all connections and set them equal to nothing. This can be done immediately after the DataEnvironment executes the query and retrieves your data.

    For example:


    YourDataEnvironment.YourConnection.Close
    Set YourDataEnvironment = Nothing

    CompuGEEK



    ------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width