DataGrid (Grid view) Question: Download Questions PDF
In DataGrid, is it possible to add rows one by one at runtime. That means after entering data in one row next row will be added?
![DataGrid (Grid view) Interview Answer DataGrid (Grid view) Interview Question](https://globalguideline.com/public/images/interview/16.png)
Answer:
Yes, for this you have to use datatable and after inserting the first row in datatable u have to bind that datatable to the grid and next time , first u have to add the row in datatable and next bind it to datagrid. keep on doing.
u have to maintain the datatable state.
u have to maintain the datatable state.
Download DataGrid (Grid view) Interview Questions And Answers
PDF
Previous Question | Next Question |
What is a DataGrid or Grid View? | Why can not I add an entry via the grid for a table containing a CLOB column? |