Adding footer column to editCommandColumn

T

tshad

I have a table which works fine using the following templates:
**********************************************************************************
<asp:TemplateColumn HeaderText="Answer">
<ItemTemplate>
<asp:Label id="lblAnswer" runat="server" Text='<%#
DataBinder.Eval(Container, "DataItem.Answer") %>'>
</asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:TextBox id="txtAnswer" runat="server"></asp:TextBox>
</FooterTemplate>
</asp:templateColumn>
*************************************************************************************

This allows me to display data from my database and insert a record from my
footer.

My problem is I need to be able to use the editcommandcolumn for my last
column and also add an insert button to the footer in the same column. My
editcommandcolumn looks like:

**************************************************************
<asp:EditCommandColumn EditText="<img src='..\images\Edit.png'border='0'
id='textbox1'>" visible="true"
ButtonType="LinkButton"
UpdateText="<img src='..\images\update.png' border='0'>" CancelText="<img
src='..\images\Cancel.png' border='0'>" />
***************************************************************

I want to do a footer column that has a image button similar to the above
buttons.

Is there a way to do this?

Thanks,

Tom.
 

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

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top