Hi,
I have grid with 50 columns, I am binding to webdatagrid with 3 rows by using dataset. This grid contains, textbox, dropdown and datapicker. I want to create new empty row by clicking Button in server side. While saving tab, I have to loop all rows (existing modified rowns and newly created row) save to database.
I am looking for sample code for this scenario.
Questions?
Is is necessity put dataset in Session ? While creating new row, do we need to mention all 50 columns in datarow? I would like to get example as soon as possible.
Thank you.
Hello InfraOracle,
You posted this thread in “UltraWebGrid” section but you mention “WebDataGrid” control so I will propose that you are using our new Aikido grid.
If this is the case I can suggest you to use grid’s “RowAdding” behavior by which you can position empty row at bottom or top of the grid - http://es.infragistics.com/products/aspnet/sample/data-grid/add-new-row-basic-features
This behavior will let you add needed rows to the grid automatically on “Enter” or “Tab” (commits data when tab-out the last cell) key.
If you have different scenario let me know.
Thank you for your reply. I have seen the following link before I sent you email http://es.infragistics.com/products/aspnet/sample/data-grid/add-new-row-basic-features . This link is not useful for my scenario. Anyways.. I would like to add, save, copy and delete functionality by using buttons not with RowAdding.
I have 50 columns in a grid, How can I create new empty row by clicking button? As well as can you provide me code for delete client side by clicking row?
Can you please share the best code for this scenario.