Gridview rowupdating dropdownlist findcontrol
How ever i can access the controls in row updating . Net Search, and more you are not using a Data Source control which means you need to provide the datasource again to the Grid View and bind it after you set the editindex (call its Data Bind() method) Only after you have bound it again with its datasource you will be able to find the Drop Down List using Find Control: EDIT: you will find other examples that involve the Row Data Bound event too - wherein you could check for the edit mode and still do the same using Find Control Pete, This is what i am doing in Row Editing .
I can get the control in rowupdating but my main purpose is to get dropdown in this event and populated dropdown.
Add(New Data Column("Col1_VL", Get Type(String))) dt.
Add(New Data Column("Col1_ML", Get Type(String))) dt.
Cs : Code-----------------------------using System;using System.
Edit Index = -1 'Bind data to the Grid View control. Sql Command Dim sql As String Dim reader As System.
Hi I put gridview control and edit template when i edit in hyperlink in gridviewbut did not find control in editemplate dropdown list how to find controlthis I need how to findcontrol editemplate control in my gridview rowediting eventi try this code but return null value any one post this code Client Side================Refer this link is: After setting new edit index you need to bind the data source with grid view...
Thanks You need to access it with findcontrol from one of the gridview events. take a look at the msdn docs here also. Authors Grid View_Row Updating (Object sender, Grid View Update Event Args e) Thanks. Does this work for other fields in the SQLData Source used by the Drop Down List? It's telling me that New Values is not a member of Data Grid Commands. Could not find in member lists for datagrid or gridview. Text"), Drop Down List)It [web developer] would not let me use anything but Drop Down List in the declaration.
please help me in this problem if possible provide your code here.
One reason I have run in to for that not to work is if the control is when the site uses a master page.
But I have no idea how to get those value when doing Row Editing & Row Updating. Bind Data() End Sub Protected Sub Grid View1_Row Updating(By Val sender As Object, By Val e As Grid View Update Event Args) 'Retrieve the table from the session object.