Gridview rowupdating event in c

I used your code in Row Editing event and gridview becomes editable, but I still have some trouble in accessing the Edit Template controls...

In the template field I will Place a label or some controls, So that it’s very easy to access those controls in the code behind by using Find Control method. Item Template is the content to display for the items in the Template Field.

Secondly if you want to include a custom field (some button or link) in the same column it’s not possible.

I found that simple data binding of my Drop Down List in my Grid View to my Sql Data Source was not going to be enough. So I have my Gridview with Data Source set to a Data Table on page Load event : In the Click event of the button I want to retrieve current values of the controls, as displayed on Web page after user's actions, and pass them to my sp as a comma-separated string. Is Null Or Empty(str Add) = False Then str Per Insert = str Per Insert & str Add & "," ' on to add values to string What to do to retrieve edited values? I also tried setting Edit Index to the index of "pseudo-edited" row, just before your code: Thanks, yousuf... I think Edit Index is nothing, because the whole Edit thing is never raised. I want to provide my user a Gridview filled with data from database, allowing him to edit these records not in order to update the database, but in order to insert edited rows in db as new records through a stored procedure. - to use Edit built-in capabilities (Edit button, Edit Item Template etc.) because I don't need to make any real updating and I don't have a clear idea of how to "bypass" the parts I don't want.) Cri Thanks, yousuf... I think Edit Index is nothing, because the whole Edit thing is never raised. :icon_smile: Cri I found this and it seems to work now: - I abandoned the use of a Data Table as source of my Gridview (gv Autorizzazioni) - I bound gv Autorizzazioni to a SQLData Source, writing some fake UPDATE statement for the SQLData Source in order not to receive exceptions On Updating; - on gv Autorizzazioni. Grid View Update Event Args) Handles gv Autorizzazioni. :icon_rolleyes: I'll fight a little more on my own and I'll post the results.