Webdatagrid rowupdating event not firing speed dating train german

I have a web application that shows a controls group based on a result set from a database.I don't know how many controls do I have to create and I don't know what kind of control will it be. I know that the problem is that I create the controls in the Page_Load.

webdatagrid rowupdating event not firing-43webdatagrid rowupdating event not firing-41

I am using a Template Field to display my Edit, Update and Cancel 'buttons' in the first column of the Grid View within respective Item Template and Edit Item Template fields.

Within the Item Template I have an Image Buttong with a Command Name of "Edit".

What happens with this is that the source is being created every time the user submits the page.

This means that when the user does an update, the data from that update is lost.

If you are using command buttons, then do not use Auto Generate Edit Button.

Hi All, In above written code only EDIT event is being fired & that is only once after that UPDATE, CANCEL no event is being fired. All I want to do is change the Grid Row Color on the basis of the value entered in QTY field.I have set the requisite attributes in the Grid View tag. (Note, in the gridview the One strange thing that I've noticed that makes me think it's a View State problem is that if I change the Command Name of the Update button to "Edit" that postback event does get captured in the Row Command event... Otherwise missing cells will be nulled out by the auto update operation. The dictionary consists of the new values to be set on the row's unbound cells.The hash key is the key of corresponding column and the value is the new value to be set.But I think I can´t avoid to do this, because if I don't, the runtime created controls fade away.

Tags: , ,