Solved

Data grid

Posted on 2002-03-30
11
271 Views
Last Modified: 2010-05-02
how to refresh a data grid instantly at run time?
0
Comment
Question by:priyabalaji
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

739 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