error setting headerimageurl in asp:TemplateColumn

G

Guest

Hi guys,
i have the following code in Datagrid:
<asp:TemplateColumn HeaderText="Delete"
headerImageUrl=../../Images/i.p.delete.gif">
<ItemTemplate>
<asp:CheckBox ID=Chk1 Enabled="True" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>

when i run the page, i get the following error:

System.Web.UI.WebControls.DataGridColumnCollection must have items of type
'System.Web.UI.WebControls.DataGridColumn'. 'ItemTemplate' is of type
'System.Web.UI.HtmlControls.HtmlGenericControl'.

Can someone tell me whats wrong and how to fix it?

Thanks
Manny
 
C

Chris Austin

Your missing the opening double quote on headerImageUrl attribute.

<asp:TemplateColumn HeaderText="Delete"
headerImageUrl="../../Images/i.p.delete.gif">

-Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top