Get datakey value gridview rowupdating dating a shy virgo
Issue with getting values from child controls in a gridview, to use for the update using a SQLData Source control Hi all, I have a gridview bound with a SQLData Source.
I am using the Update feature of the SQLData Source to update a SQL Server database with values entered into the gridview. I believe this is due to the controls that contain the user entries are not the gridview itself, but rather child controls within the gridview.
I've tried every method I can find to get the new value for a control, and it's continually coming back as the old method.
Problem getting new value in gridview's Row Updating event I have a dynamically created gridview, it's autogeneratedcolumns is set to True, and it databinds on every postback.
Now, when an user edit a row then click update, I'm having problem getting the new values in gridview's rowupdating event, it always returns the old values.
I have done this before "n" number of times but I am not able to get it working this time.
The trouble is that when the call for the Select Method of the formview goes to the relevant function - "Get Customer By Cusnum" I have a null value in its parameter "cusnum".