Alok Hi aloksinha83, Please see this post: Qin Dian Tang Microsoft Online Community Support Please remember to mark the replies as answers if they help and unmark them if they provide no help.... Hello, I have a formview control with Default Mode="Insert". 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.
Here is some code: How to get values from Row Deleting in gridview I'm trying to get the cell values from a row that is being deleted from a gridview and am having big problems.
I need the key value (the Selected Value Property of the Grid View when a row is selected) to do some special processing. Upon submit, the screen returns blank, and the database is not updated.
Ok This is the settings: I use a Viewgrid with only itemtemplate colums for example. Getting Key Value from Grid View in On Row Created Event Hello, All: Is it possible to obtain the key "value" from the Grid Row that is passed in the event args of the On Row Created event? I have been using the names of the actual controls but nothing happens.
Datagrid(1.1) to Grid View(2.0) and using the Row Updating event how to extract the values from the controls. In my Item Inserted event, how do I get the unique ID value of the newly inserted row? 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.
So what you need to do is store the data source (maybe in Session) and only bind rebind the data when you absolutely need to (Like during the Is Not Post Back) Do you understand?
Please post the code for your Page_Load method and the that handles your Update (your C# code) so we can have a better look at what's going on. Please give some references and/or details of how to. This wipes out the data provided by the user during editing (editing happens after the page load).
But, on the Load Event, I cannot retreive the values on the sub-controls because they seems not re-created ?When the page was loaded, I can see the customer records on the Grid View but when I clicked the Delete button. Anybody knows why can't I get any keys or values in the Row Deleting event? 25 Protected Sub Grid View1_Row Deleting(By Val sender As Object, By Val e As System. When I click on ' Remove Button1' in Row 0, the values I get are from Row 1, not Row 0 for some reason.