how to add and remove rows in asp.net grid view using java script

Posted by Venky.Net under JavaScript on 4/12/2014 | Points: 10 | Views : 955 | Status : [Member] | Replies : 0
hi

i am using asp.net gridview like below format

Sno Itemname Qty
1 apple 7 -

2 orange 6 -

3 graphs 3 +

(-)-define image button used delete rows
(+)-define image button used add rows


1.sno automatically increment by <%#Container.DataItemIndex+1 %>
i want output
1.when a user click (-) button remove one row and display below format
S.no itemname qty
1 orange 6 -

2 graphs 3 +
2.suppose user click(+)button add one row and display below fromat
S.no itemname qty
1 orange 6 -

2 graphs 3 -

3 apple 2 +

this all operation handled by client side only.please give some example.




Responses

(No response found.)

Login to post response