473,467 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Getting saved values back to display after Update

Bob
I got a datagridview on which I do an update, the sace works fine, but after
the save, the newly saved values do not get displayed in the cells. It looks
like I need to do a refresh of some sort to get that info to display, but I
want it to display and return to the selected rows both in the parent
datagrid and in the two child datagrids, related to the parent.

I would appreciate it if anybody could tell me whats the best way of getting
this, a code snippet sample would help.

Bob
Jun 26 '06 #1
1 1120
Bob,

As you tell it to us, it sounds strange for me, if there is an update than
nothing change.
You update the datatable, reflected to your values in your Grid, the Grids
can stay the same.

Or you would do a refill, than it is difficult to set when there is
something new added by another client.

But in that case to get an avarage position you can save the current
positions from the currencymanager from your maintable do a clear from your
dataset, do the refills and set the position of the currencymanager again to
what it was.

If it than has to be precise you can of course save the key, do a search
afterwards in your table and set the position accoording to the found row.

I hope that I understood your problem and that this gives some ideas,

Cor
"Bob" <bd*****@sgiims.com> schreef in bericht
news:eX*************@TK2MSFTNGP05.phx.gbl...
I got a datagridview on which I do an update, the sace works fine, but
after the save, the newly saved values do not get displayed in the cells.
It looks like I need to do a refresh of some sort to get that info to
display, but I want it to display and return to the selected rows both in
the parent datagrid and in the two child datagrids, related to the parent.

I would appreciate it if anybody could tell me whats the best way of
getting this, a code snippet sample would help.

Bob

Jun 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
11
by: simonmarkjones | last post by:
Hello there! I'm Still pretty new to access only been using it for a couple of days. If a record has been partially filled out or even completly filled out and then the form is closed or the...
4
by: Filippo Pandiani | last post by:
I have a grid that shows the file list from a folder. On the postback, how do I get a Dataset from this grid? Thanks, Filippo.
2
by: Kiran Kumar Pinjala | last post by:
Hi, May be this is silly, or I just need a second pair eyes to look at this. I am trying to get values that I have edited in a datagrid and update the values with those values. Here is the code...
1
by: Øyvind Isaksen | last post by:
I want to make a page to update articles stored in my SQL Server. Ofcourse, the saved article information needs to be displayed in the form fields when the page is opened. Then the user can update...
2
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in...
2
by: joeyrhyulz | last post by:
Hi, I'm trying to make a very simple update statement (in Oracle) in jet sql that seems much more difficult than it should be. The root of my problem is that I'm trying to update a field on a...
2
by: raulbolanos | last post by:
Hello guys, I got this problem. I have a Window Form project within on it I have 2 Buttons and 1 Label btSet (button) btGet (button) lbResult (label) When I click on btSet I save the value...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...

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.