Click here to Skip to main content
15,916,280 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a DataGridView i bound to ms-access database using data connection wizard
when i try to add new row to the DataGridView programatically then update, it says

Rows cannot be pro grammatically added to the DataGridView's rows collection when the control is data-bound. 

how do i correct this.

Share this answer
TweakBird 4-Jun-11 14:28pm    
Good call. My 5!
If you have defined a strongly-typed dataset with a single datatable then you could use that and get some nice strongly typed methods to do this stuff rather than rely on the grid methods

Programmatically Add Rows to DataGridView[^]
Share this answer
TweakBird 4-Jun-11 14:29pm    
Good answer. My 5!
RaviRanjanKr 4-Jun-11 23:45pm    
Thanks :)
TweakBird 5-Jun-11 3:03am    
Cool Smith 5-Jun-11 4:00am    
i will try it and get back to you, thanks for answering

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900