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

Adding and saving multiple rows

2 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 15 Jan 2009, 05:27 PM
Hi,
I have a gridview which uses dynamic SQL.  I let the user add as many rows as they want and then when they hit the save button I loop through each row and set the primary key with a new id. However I still get 'Primary Key cannot be null' error even though I have set it. Any ideas?

Thanks

2 Answers, 1 is accepted

Sort by
0
Derek
Top achievements
Rank 1
answered on 15 Jan 2009, 09:56 PM
I got it working thanks.
0
Nick
Telerik team
answered on 16 Jan 2009, 08:33 AM
Hi Derek,

I am glad you found the answer to your question. Do not hesitate to write us back if you have further questions.

Sincerely yours,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Derek
Top achievements
Rank 1
Answers by
Derek
Top achievements
Rank 1
Nick
Telerik team
Share this question
or