Re: |
| Chirag Bhavsar replied to Partha Chakraborty at 12-May-08 12:33 |
Hi! Partha,
To add an item in the gridview you may use the designer or can also do it using the hmtl code view. to add any item in header and footer of the grid view you have to write the script in between "headerTemplate" or "footerTemplate" respective tags, you can see this in the example mentioned below,
the command name field is use to identify the event. as the events generated in the gridview these events are called bubbled events
the below mentioned script example is for insert,delete buttons and text box as requested by you.
<FooterTemplate> <asp:Button id="btn1" runat="server" CommandName="insert" Text="Insert" OnClick="btn1_Click" /> <asp:Button ID="btn2" runat="server" CommandName="delete" Text="Delete" OnClick="btn2_Click"/>
<asp:TextBox ID="txt" runat="server"/>
</FooterTemplate> |
|