I populated a datagridview with some rows from a view.
It works great.
I would like to rebuild the view dynamically depending on which Table Name I select from my other grid. The view correctly contains the rows from the new table.
Now I am working on the data grid view in the form.
HOW do I erase the data rows and heading from the data grid view ?? ....
I need to erase the data rows from the previous viewing and then populate the data grid view object with the new data. It keeps appendding new data to the previous data.
I tried datagridview.column.clear().
Thanks for you help.
If you could provide a wee bit of code snippet, appreciated.
It works great.
I would like to rebuild the view dynamically depending on which Table Name I select from my other grid. The view correctly contains the rows from the new table.
Now I am working on the data grid view in the form.
HOW do I erase the data rows and heading from the data grid view ?? ....
I need to erase the data rows from the previous viewing and then populate the data grid view object with the new data. It keeps appendding new data to the previous data.
I tried datagridview.column.clear().
Thanks for you help.
If you could provide a wee bit of code snippet, appreciated.