This is a migrated thread and some comments may be shown as answers.

Add Multiple records to a grid from a form?

2 Answers 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
hamda
Top achievements
Rank 1
hamda asked on 20 May 2010, 05:40 AM
I have a regular form with textboxes and dropdowns when I fill this form then press a button it should add this info to a grid of one record that I just entered from the form. The problem is I want to add multiple records to this grid, but when i fill again then insert it to the grid it replaces the old record I inserted earlier. I use a Select Function that takes the id of the record inserted then rebind it to the RadGrid.

How can I add multiple records to a grid from a form??

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 May 2010, 07:28 AM
Hello Hamda,

One suggestion would be executing insert query multiple times and Rebind() the grid. Please refer the Code Library below for more information about how to perform manual insertion.
Manual Insert/Update/Delete using FormTemplate and Sql backend

Regards,
Shinu.




0
hamda
Top achievements
Rank 1
answered on 20 May 2010, 08:18 AM
I'm creating a list then i do select from the database for the record the user inserted. Can you please explain more?
Tags
Grid
Asked by
hamda
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
hamda
Top achievements
Rank 1
Share this question
or