I load data from an XML to a dataset then I use the dataset to populate my datagridview. By doing that my DGV is getting bound to the dataset. Now I am getting the following error: 'RowCount property cannot be set on a data-bound DataGridView control.'
is there anyway to make my DGV "unbound" again to prevent these errors? or is there another way to fix this?
DataSourcethen the grid is bound. If you don't want the grid to be bound then don't set theDataSource, but that means that you have to create columns and rows and add all the data yourself. - jmcilhinneyValueof a specific cell so you would have had to add at least one column and one row first to be able to do that. You would normally add the columns first and then add the rows and data at the same time, but you don't have to. I'm sure that you can find plenty of examples of populating aDataGridViewwith a web search. - jmcilhinney