Click here to Skip to main content
14,774,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I am creating Gridview which will dynamcially take number of columns and row from data corresponding to that column.I have one button outside the gridView . On the click of that button i should be able to add one row at the top of the gridView in a editable mode, so that i can enter the the value which i want and save that to datatable in Code behind.

Help need !
thanks and regards
parag.
Posted

1 solution

A GridView is bound to a datasource of some type. If you want to add a new row to the grid then add a new item to your datasource. If you want blank rows then use either the header or footer templates to place one.
   

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