|
i have datagridview whose datasource is assigned to datatable and 2 buttons.
click on up button should move my row up.
and click on down button should move row down.
it gives error.
"Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound."
|
|
|
|
|
That is not an error, it is an explanation, which tells you why you cannot change the position of the rows in the grid; because they are bound 1 to 1 with rows in the data source.
|
|
|
|