Top "Templatefield" questions

How to find Control in TemplateField of GridView?

How does FindControl method works if I need to find any Control which is inside GridView Template, more specifically ItemTemplate? …

c# asp.net gridview findcontrol templatefield
How to get values from template fields in GridView?

This is my markup of GridView. <Columns> <asp:TemplateField HeaderText="Customer Name"> <ItemTemplate> <…

c# asp.net excel gridview templatefield
How to use HtmlEncode with TemplateFields, Data Binding, and a GridView

I have a GridView bound to an ObjectDataSource. I've got it supporting editing as well, which works just fine. However, …

asp.net data-binding gridview html-encode templatefield
Binding the Checked Property of a CheckBox within a TemplateItem

For the life of me I cannot bind the Checked property of a CheckBox control within a TemplateField (declaritively). I …

asp.net data-binding gridview checkbox templatefield
Gridview template field datasource

I've placed a gridview on my asp.net page, and am using a sql call to obtain the datasource. In …

asp.net datagridview templatefield
ASP.NET + GridView + CommandField as TemplateField

I have a GridView. My GridView has a column that is contains an "Options" column. This column includes the traditional …

asp.net .net gridview templatefield commandfield
ASP:DropDownList in ItemTemplate: Why is SelectedValue attribute allowed?

This piece of code <asp:DropDownList runat="server" ID="testdropdown" SelectedValue="2"> <asp:ListItem Text="1" Value="1"></…

asp.net data-binding drop-down-menu selectedvalue templatefield
Gridview sorting with custom template fields

I can't seem to figure out how to sort my gridview with both databound AND custom fields. The custom field …

c# asp.net gridview sorting templatefield
Asp Gridview use Boundfields? or Templatefields?

I put data in a data table e.g. dt.TableName = "SA1"; da.Fill(dt); GridView1.DataSource = dt; GridView1.DataBind(); …

c# asp.net gridview templatefield boundfield
Can I programmatically add a linkbutton to gridview?

I've been looking through some similar questions without any luck. What I'd like to do is have a gridview which …

c# asp.net gridview templatefield