Solved

Data grid

Posted on 2002-03-30
11
265 Views
Last Modified: 2010-05-02
how to refresh a data grid instantly at run time?
0
Comment
Question by:priyabalaji
  • 3
  • 2
  • 2
  • +3
11 Comments
 

Expert Comment

by:puloy
ID: 6907021
Are you using the DataGrid to show info from a database? And do you have an ADODC connection linked to the Datagrid? Because in that case you should refresh the adodc. like this
Adodc1.Refresh
And in that way you refresh the content of the datagrid.
0
 

Expert Comment

by:puloy
ID: 6907022
Are you using the DataGrid to show info from a database? And do you have an ADODC connection linked
to the Datagrid? Because in that case you should refresh the adodc. like this
Adodc1.Refresh
And in that way you refresh the content of the datagrid.
0
 

Author Comment

by:priyabalaji
ID: 6908391
i have used a data environment connected to the data grid
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:GautamMukherjee
ID: 6908625
Use datagrid.refresh
this will solve your problem.
0
 

Author Comment

by:priyabalaji
ID: 6908771
i have tried but it does not work.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 100 total points
ID: 6909456
how your datagrid is connected to your DE? Through a Command? Through a recordset? In any ways, you need to refresh this object and then refresh the datagrid. Show more of your actual code that displays data to the grid.
0
 

Expert Comment

by:talluri_28
ID: 6909708
hello priyabalaji garu

i am giving code, may be it will usefull to u

public sub DBGRDRefresh()

If DataEnvironment1.rsCommand1.State = adStateOpen  then  
DataEnvironment1.rsCommand1.Close
DataEnvironment1.rsCommand1.Open "Select * from Products"
Set DataGrid1.DataSource = DataEnvironment1

end sub


Jagadeesh

0
 

Expert Comment

by:GautamMukherjee
ID: 6914894
Please send me your code so that i can rectify where it is giving you a problem.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6914924
please GautamMukherjee , take your time reading http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7060621
This question appears to be abandoned. A question regarding it will be left in the Community Support
area; if you have any comment about the question, please leave it here.

Unless there is objection or further activity, one of the moderators will be asked to accept the comment
of <emoreau>.

The link to the Community Support area is:
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7065769
Thanks, emoreau  for your help here.

I have finalized this question, and will monitor it for comments.

Moondancer - EE Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question