I have created a web control which displays all info from a particular table in a datagrid.
I then drag and drop the control onto a webpage which adds a record.
The problem I am having is that when the user adds a record it does not show up in the web control datagrid.
Is there a way I can refresh the web control embedded in the webpage ?I am not sure what you are doing code wise, so I offer this suggestion. Most likely the datagrid isn't reflecting the latest update because you are binding the datagrid in the load event, but not actually adding the new record until the button click event is fired. Since the datagrid was bound before the button event added the new record.
Try rebinding the datagrid right after you add the new record.
If that isn't it, post your code up here so we can get a better look at what you are doing.
0 comments:
Post a Comment