Hi,
I have a problem when I update values in my gridview. The first time I hit update after entering data in the gridview, it goes through the rowupdating event, where I call a stored procedure and then I set the editindex to -1 and bind the new data to the
grid. Well, It does this, but then it goes right back into the rowupdating event and I can't figure out what I'm doing wrong. (In the gridview, I have "onrowupdating =gridview_rowupdating with datakeynames value set. )
When it goes to the rowupdating event again, it gives an error saying it's unable to cast object of type system.web.ui.webcontrols.label to type 'system.web.ui.webcontrols.textbox.
I don't know why it's calling the rowupdating event twice after it's already updated. I've seen lots of information on the web about this, but nothing has helped so far.
I've removed the 'rowupddating = gridview_rowupdating' , but that has caused the event not to fire ...
Go to the complete details ...