Hi,
I have used WebGrid,i have use Templated Colum for place the control inside of grid,i need to get a controls inside of grid.How can i get the control.
This is my code
<Columns >
<igtbl:TemplatedColumn BaseColumnName ="LANG_CD" Key="LANG_CD" >
<asp:Label ID="lbllanguage" runat ="server" Text='<%# Bind("LANG_CD") %>'></asp:Label>
<Header Caption ="Language"></Header>
<FooterTemplate>
<asp:DropDownList AutoPostBack="true" ID="ddlInsertLanguage" DataSourceID="objDSlanguage" DataTextField="LANGNAME" DataValueField="LANGCD" runat="server"></asp:DropDownList>
</FooterTemplate>
</igtbl:TemplatedColumn>
</column>
i need to get this label and dropdown list in code behind page.
The following thread shows two different ways to get at a control in a WebGrid templated column:http://forums.infragistics.com/forums/p/5667/25275.aspx#25275
Rumen's approach works well for controls that are defined at design-time and for which you simply need to modify a property or two.
The post afterward shows how to get at the Controls collection of an individual cell in the templated column, such as if you want to put different controls in the cell template.