?
Solved

Data grid

Posted on 2002-03-30
11
Medium Priority
?
277 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 400 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Suggested Courses
Course of the Month15 days, 11 hours left to enroll

741 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