Click here to Skip to main content
16,020,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all,
Here i want your help for creating dynamic row. here i created dynamic row using addnewrow,setrowdata,setpreviousdata like that. now i want how to create new row in middle of dynamic grid. using normal asp.net vs 2010

For eg.
Here i created 5 row S.no 1,2,3,4,5 all have datas now i want to add new row from middle of 2nd and 3rd row.without changing that 5 records datas and i need to add new row from middle and then s.no should be 1,2,3,4,5,6.is it possible to do this.
Thanks is advance
Posted

1 solution

Try use this code for s.no.

ASP.NET
<asp:TemplateField>
        <ItemTemplate>
             <%#Container.DataItemIndex+1 %>
        </ItemTemplate>
    </asp:TemplateField>
 
Share this answer
 
Comments
JOTHI KUMAR Member 10918227 23-Dec-15 0:35am    
above one add new row in between exixting row ???
JOTHI KUMAR Member 10918227 23-Dec-15 0:37am    
i want to add new row in between 2 and 3

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