Find control in edititemtemplate in rowupdating event
Raise Bubble Event(Object source, Event Args args) at System. a little bit confusing regarding my subject because i dont know how to say it..the way my problem is how can i get the id of a control (e.g. Click on the Gridview and then in the Properties window, select the events button (lightening bolt) to find the Row Updating event listed. Double click to the right of the Row Updating label to create the event in your code-behind. i ve written code like this Drop Down List ddl1= (Drop Down List)grd Validations. 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. Ok This is the settings: I use a Viewgrid with only itemtemplate colums for example. hi can anyone tell me how to findcontrol in rowupdating event of gridview? Find Control("ddl1"); Drop Down List ddl2= (Drop Down List)grd Validations. im not gettin where i ve done wrong.pavankumar Hi pavankumarkavety I notice that the status of this thread is changed to “Resolved”. 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.the View state is disabled because I need the the Grid View to be displayed even when there is no data.
If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Once you have the code-behind, use the following code to access the fields in the row being edited.