views:

115

answers:

2

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

+1  A: 

Bind your GridView to a DataTable. When the user adds a row, add a row to the DataTable.

JoelFan
can u please give me a sample or a link where i can understand to do so..
http://lmgtfy.com/?q=how+to+bind+a+gridview+to+a+datatable
JoelFan
sorry... my bad...
+1  A: 

You could implement an ObjectDataSource and keep your data in memory. See this MSDN page (and following) for details.

M4N