Click here to Skip to main content
15,881,516 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how to insert a new rows in different places in asp.net grid view?
Posted
Updated 31-Aug-13 21:07pm
v3
Comments
Thanks7872 1-Sep-13 3:08am    
What do you mean by "rows in different places"?
amnk.info 1-Sep-13 3:14am    
if I have gridview with 4 records. then it will show

No Name Add
1 Record 1 Add btn
2 Record 2 Add btn
3 Record 3 Add btn
4 Record 4 Add btn

When i click row no 2 Add btn then i want to add a new record between 2 and 3
amnk.info 1-Sep-13 3:16am    
after that my grid view must view like this

No Name Add
1 Record 1 Add btn
2 Record 2 Add btn
3 Record 3 Add btn
4 Record 4 Add btn
5 Record 5 Add btn

hope you can understand my problem. thanks for reply
Boipelo 1-Sep-13 3:37am    
You said between 2 and 3, why 5 not between 2 and 3 in your example? like...
Record 2 Add btn
Record 5 Add btn
Record 3 Add btn
amnk.info 1-Sep-13 3:41am    
Yes you are right. I'm sorry i got typing mistake.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900