Accessing Template Column Elements
Hello,
I have a GridView control with a template column. This templated column contains a dropdownlist for edit mode. Suppose I am in edit mode, i.e. I am editing some row. And suppose that some event has been fired, so my handler is being called now. How can I access the dropdownlist of that template column from the C# code? Sorry for this (probably) trivial question, I am new to ASP.NET, and I can't find the answer...
Re: Accessing Template Column Elements
In RowEditing event of GridView1, you can get the dropdownlist control by
Code:
GridView1.Rows(e.NewEditIndex).FindControl("DropDownList1")