Adding Button to EditCommandColumn on a dtatagrid footer
Posted on 2004-10-20
What I would like to do is have a databound datagrid on a asp page using c#. This will allow editing and the insertion of new data. I have an EditCommandColumn with the normal edit cancel and delete options defined. All the other columns are template types with a footer defined to hold the fields for the user to create the new row in.
The problem I have is that I need to add a ‘add‘ or submit button to the footer of the EditCommandColumn, is this possible, if so how is it done? I keep getting parse erros if I try the following:-
<asp:EditCommandColumn ButtonType="PushButton" UpdateText="Update" CancelText="Cancel" EditText="Edit">
<asp:LinkButton id="LinkButton1" runat="server">LinkButton</asp:LinkButton>