Gridview rowupdating not retrieving newvalues

The rowupdating event in my Gridview doesn't give me the new values only the old ones.

In my Grid View I do not use a Data Source Object and can therefore not use e. Old Values The columns used, are template columns Thx Below some codesnippets I use: protected void Page_Load(object sender, Event Args e) protected void grv Categorie_Updating Command(object sender, Grid View Update Event Args e) Some quick thoughts 1 - step through the code with the debugger. Here's what went wrong: In my GV I use Image Button to handel edit, cancel and update logic.

Eighter the Old Values or New Values dictionaries are empty. In this case when I tried to get data before databind asp drops "Argument Out Of Range Exception". Regards, Tibor Hi, Yes, I checked New Values, it is empty.

I think the first must be the command field, 2nd and 3rd are "ID" and "elso_detailed_mezo".

I just selected the Auto Generated Edit Button and Auto Generated Delete Button properties to True in the properties tab for the grid. Took 15 minutes to change it, my code is half if not less than it was before, and all I worked hard for now just works straight forward. The New Values and Old Values collections are empty..means I can't do anything but display the orginal data again :( Does anyone else have this problem or a solution?I am using and Array List of my own Objects with public Get/Set methods (c# style). When all you've got is a Hammer, Every Problem looks like a Nail. Output: Main Content_detail GV22_ctl02_0#0 - System. This can be beneficial to other community members reading the thread.

Leave a Reply