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>


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Problem with gridview during add,modification etc. - Partha Chakraborty  10-May-08 02:30 2:30:33 AM
      Yes you can add - Sujit Patil  10-May-08 02:49 2:49:11 AM
      Scrollable grid - sri sri  10-May-08 02:52 2:52:10 AM
      Re: - Chirag Bhavsar  12-May-08 12:33 12:33:54 AM
      See This - Sanjay Verma  12-May-08 12:41 12:41:05 AM
View Posts