Home All Groups Group Topic Archive Search About
Author
9 Jun 2005 2:08 PM
Davey P
I have a datagrid that is made up of template columns(containing
dropdownlists and textboxes). I don't have an explicit edit mode, so values
in any/all of the rows can be changed at any time (as it is basically a data
entry screen). This leaves me with the problem that I need to capture ALL
changes made to the grid on EVERY postback (no matter what caused the
postback) and call my update command then.
Is there an event that fires every time a postback is made? I was thinking I
could place my update code in there. Thanks in advance.

Author
9 Jun 2005 6:33 PM
Brock Allen
If you have a single "Update" button on your form then you could put your
update code in there. Otherwise look into Page_Load, as that gets called
upon every postback.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> I have a datagrid that is made up of template columns(containing
> dropdownlists and textboxes). I don't have an explicit edit mode, so
> values
> in any/all of the rows can be changed at any time (as it is basically
> a data
> entry screen). This leaves me with the problem that I need to capture
> ALL
> changes made to the grid on EVERY postback (no matter what caused the
> postback) and call my update command then.
> Is there an event that fires every time a postback is made? I was
> thinking I
> could place my update code in there. Thanks in advance.