Solved

Data grid

Posted on 2002-03-30
11
253 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

785 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