Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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
Comments
pradiprenushe 12-Jul-12 1:02am    
Can u paste code?
Member 11039101 12-Jul-18 9:18am    
yes

Use this link:-

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

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