473,545 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Urgent : Data grid not refreshing properly

284 Contributor
i make a form whic has one data grid and one text box and one button
when i write a name on tex box and click add the name stored in database successfully.
now in the grid i want to show all the names but after i add no name is seen on datagrid but if i add second time the first name appear on the datagrid and when i entery third entry the second name apperar

i use the following code

Expand|Select|Wrap|Line Numbers
  1. adodc1.recordset.requery
why it show one field alway less than in database

i also try to make a connection with the coding by this
Expand|Select|Wrap|Line Numbers
  1.  dim rs as recordset 
  2. rs.open "select name from customer",conn,adopenstatic,adlockoptimestic
  3. set datagrid1.datasource=rs
  4.  
on the load event but it does not show any data on datagrid why

urgent help is need ,
while i am using ms access , before that i use sqlserver and successfully connect datagrid to database but ms access is not working properly
Jan 30 '08 #1
6 1855
debasisdas
8,127 Recognized Expert Expert
Try to refresh the recordset.
Jan 30 '08 #2
muddasirmunir
284 Contributor
also refreshing will do the same
if i click the button to add the record add but it only refresh the name
which i add previous and the current record does not showns until
i add another

is there any similar thing like datagrid i find flexgrid by did not properly
code it what is the coding to attached a recorset to flexgrid
when i do it like datagrid it give me error


Try to refresh the recordset.
Jan 30 '08 #3
daniel aristidou
491 Contributor
[quote=muddasirm unir]their is no option like this
Expand|Select|Wrap|Line Numbers
  1. adodc1.recordset.refresh
Try
Expand|Select|Wrap|Line Numbers
  1. adodc1.refresh
Jan 30 '08 #4
muddasirmunir
284 Contributor
i got it by closing recordset and then reopening
Jan 30 '08 #5
shuvo2k6
68 New Member
i got it by closing recordset and then reopening
u can Try by this:
Adodc1.RecordSo urce = "select * from Info Where ID<" & CInt(Text1.Text ) & ";"
Adodc1.Refresh

Get better.

Regards,
shuvo2k6
Jan 31 '08 #6
muddasirmunir
284 Contributor
actually refreshing and requring is not working properly
so i close the recordset and then again open it by diong this my problem solved.



u can Try by this:
Adodc1.RecordSo urce = "select * from Info Where ID<" & CInt(Text1.Text ) & ";"
Adodc1.Refresh

Get better.

Regards,
shuvo2k6
Jan 31 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
924
by: serge calderara | last post by:
Dear all, I have an application which is collecting dynamic incoming data and store them in a list. I need to dispaly this incoming list with 2 important recommandation : 1- if the incoming item is already present in the control list, I should not display it 2- if an item is not anymore present i shoulds eb able to remove opnly that item
0
839
by: serge calderara | last post by:
Dear all, I have an application which is collecting dynamic incoming data and store them in a list. I need to dispaly this incoming list with 2 important recommandation : 1- if the incoming item is already present in the control list, I should not display it 2- if an item is not anymore present i shoulds eb able to remove opnly that item
27
13005
by: ted benedict | last post by:
hi everybody, i hope this is the right place to discuss this weird behaviour. i am getting dynamically generated text or xml from the server side using xmlhttprequest. if the server side data is STATIC, i can have whatever size of data i want. but if the data (xml or text) is generated dynamically using php, then there seems to be a size...
4
4494
by: Joe-Paul | last post by:
Hi: I'm running a simple query on an Access Table from VB6.0. The operator can make several different selections. Based on their selection, a different, specific SQL needs to be run. So, when the operator says... "Do it"...the click procedure goes to a Function (based on their selection)...the specific function builds the correct SQL and...
0
7490
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7682
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7780
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6009
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5351
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.