I have a gridview... which is not using a database.
I have these 3 rows of which are fixed and when the user clicks on the add button a new row is created . The grid view looks like this
employee department ||timeorwork ||Delete
admin |||[dropdownlist] ||[dropdownlist] button // so this row is fixed and i start adding after this row
how do i do this... sorry but i am not good at editing.. i tried my best.. sorry again what is the best way to solve my prob
Bind your GridView to a DataTable. When the user adds a row, add a row to the DataTable.
You could implement an ObjectDataSource and keep your data in memory. See this MSDN page (and following) for details.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.