Getting saved values back to display after Update

B

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
 
C

Cor Ligthert [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top