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

'Adding' a New Row twice

5 Answers 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 14 Jan 2009, 04:30 PM
Hi,
When I add a new row, enter data in the first column, and without tabbing off, click add again, I get an error, saying 'Row does not exist', Is there a way to validate the current row before adding a new row ?

Thanks,
Derek,

5 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 16 Jan 2009, 11:00 AM
Hello Derek,

Thank you for contacting us.

I am not sure about the situation. Could you please specify how exactly are you adding the row? Sending us a sample application will help us find the best solution for this case. In order to be able to attach a project you have to open a new support ticket.

I am looking forward to your reply.

Best wishes,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Derek
Top achievements
Rank 1
answered on 16 Jan 2009, 11:57 AM
I have it fixed now thanks.
0
Fernando
Top achievements
Rank 1
answered on 28 Jan 2009, 08:25 PM
I have the same problem, how did you fix it..

Thanks
0
Derek
Top achievements
Rank 1
answered on 29 Jan 2009, 08:45 AM
Override the add button on the bindingnavigator. Then I allow the user to add as many rows as they want and then loop through each row and validate it (primary key etc).   Add a row to the bindingsource rather than the grid. Always work with the bindingsource rather than the grid. hope this helps.



0
Jack
Telerik team
answered on 29 Jan 2009, 10:35 AM
Derek, thank you for your suggestion.

Hi Fernando,

Could you please open a support ticket and send us a sample application that reproduces the issue. This will help us investigate the case in detail and find a proper solution. Thank you in advance.

Kind regards,
Jack
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
Jack
Telerik team
Derek
Top achievements
Rank 1
Fernando
Top achievements
Rank 1
Share this question
or