Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
183
problem with updating webgrid from custom form.
posted

 hey.

i've created an heirarchical webgrid which  holds two bands of data created at runtime

[nothing is defined at design, but the webgrid and it's visual appearance, colors, and such, rows and columns are not defined]

 a dataset is created at runtime during page load event with sqldataadapter.

when i click on child row a new modal window appears  with a custom form to update the data of the selected row, the reason i'm using a custom form is since i'm updating data which doesn't exist in the original grid, since the child node only contains 3 out of all the collumns available on the table in the sql server.

 

the custom form is made of a formview and sqldatasource, when i finish inserting the data, i press an update button and the window is closed while the orginal window [with the grid] get a postback.

now here is the kicker, after i select the same row again  i get the old values before the update, this happnes until i close the window and reopen the page, only then, i get the updated data.

 

do you have any idea why such a thing might happen ?

Parents Reply Children
No Data