c# - Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound -
I have a grid and when the data is loaded into the grid; I just select a line and press the Edit button, on the new form is opened, and the values of row cells are passed to control the sub-form. But, when I change some values of sub-values and save them to take a place in the grid, then I come to: Data minimized control Then the rows of programmatically databagrid rows Can not be added to the collection. What is the cause of this error and how to remove it. The reason for this is that "the line program can not be programmed by the collection of datagrid rows of datagrid added to ". It is as clear as crystalline water solution ? Do not add rows to the DataGridView rows collection, add them to the underlying data source archive (the collections that you are setting in DataGridView's Data Source Processing)
Comments
Post a Comment