Dear sir :
when I wrote the previous code and run , the following exception appeared :
An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Cannot modify the Items collection when the DataSource property is set.
the DataSource property must be set to the database,what can i do to solve this problem??
However, I couldn't manage to get the previous while loop to work with the DataSet as it ended up removing all rows, selected or not, or it only removed the first row.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.