|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGrid Update QuestionI 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. 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.
See "what's going on" when an "Error Creating Control" message is displayed
Accessing dynamic radio buttons Table height 100% has no effect Problem using AddHandler for dynamically created WebControls modify display of RadioButtonList items Dynamic Web Control Event Handling asp:table remembering state? Parent of WebControl Using html controls or asp controls asp.net 1.1 wizard control |
|||||||||||||||||||||||