|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Getting saved values back to display after UpdateI 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 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 Show quoteHide quote "Bob" <bduf***@sgiims.com> schreef in bericht news:eXtNspVmGHA.464@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 >
Controling Event Sequencing...
dataset and where clause Dataset HasChanges function not true when Dataset is passed as variable button flash with red and white color default in .NET byref or byval? Build Failed - 0 Errors DataGridView row background color Define a compilation switch Listbox help How to detect datagrid row change |
|||||||||||||||||||||||