Data grid

how to refresh a data grid instantly at run time?
priyabalajiAsked:
Who is Participating?
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
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
 
puloyCommented:
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
 
puloyCommented:
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
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
priyabalajiAuthor Commented:
i have used a data environment connected to the data grid
0
 
GautamMukherjeeCommented:
Use datagrid.refresh
this will solve your problem.
0
 
priyabalajiAuthor Commented:
i have tried but it does not work.
0
 
talluri_28Commented:
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
 
GautamMukherjeeCommented:
Please send me your code so that i can rectify where it is giving you a problem.
0
 
Éric MoreauSenior .Net ConsultantCommented:
please GautamMukherjee , take your time reading http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp
0
 
Éric MoreauSenior .Net ConsultantCommented:
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
 
MoondancerCommented:
Thanks, emoreau  for your help here.

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

Moondancer - EE Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.