Click here to Skip to main content
12,748,873 members (38,755 online)
Rate this:
Please Sign up or sign in to vote.
See more: VS2008 C# Visual-Studio , +
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
pradiprenushe 12-Jul-12 1:02am
Can u paste code?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Use this link:-

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170215.1 | Last Updated 12 Jul 2012
Copyright © CodeProject, 1999-2017
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