I have a Gridview and when the edit button is clicked the details of that row is displayed using a detailsview.
While displaying, I need to find a control in detailsView, and then bind it with a Datasource.
First of All I’m not sure about the event to be used but have used DetailsView1_DataBound. However, if I have to find the control using
var control=(ControlType)DetailsView1.Findcontrol("ID");
Always returns null. May be I am not using the right event, and it couldn’t find the control at that point. Any ideas about the event to be used, and the right code please?
Thanks
In your
databound event, you need to take care yourDetailsView Mode