Link to home
Start Free TrialLog in
Avatar of David Svedarsky
David SvedarskyFlag for United States of America

asked on

Clear Datagridview Rows

In VS VB.Net 2005: Clear values in attached "Test1 w-values" datagridview for next record.
See attached "Test2 no values".

Sample code would be very much appreciated.
Test1-w-values.pdf
Test2--no-values.pdf
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

You can set the Datasource of your DGV to nothing:

YourDataGridView.DataSource = Nothing
Avatar of David Svedarsky

ASKER

That code works to clear the datagridview rows, but it also clears all of the datagridviews in the table. I need code to edit only one instance.

Can you help?
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks