Click here to Skip to main content
11,437,713 members (31,767 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VS2008 C# DataGridView
I have a grid and when data is loaded in grid; I simply select a row and press edit button. On edit, new sub form is opened and values of row's cells are passed to controls on sub form. But, when I change some values on sub form and save them to be replaces in grid the error comes to me: Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound. What is cause of this error and how to overcome this.
Posted 11-Jul-12 19:44pm
Comments
pradiprenushe at 12-Jul-12 1:02am
   
Can u paste code?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Use this link:-

http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/afa42681-84db-4e16-93e1-80afe0b1ff5b/
  Permalink  

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



Advertise | Privacy | Mobile
Web02 | 2.8.150506.1 | Last Updated 12 Jul 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100