-
April 11th, 2013, 12:53 PM
#1
Clear datagridview rows
I've been trting to clear datagridview rows so it can be populated again. Sounds simple, but most of the common solutions dont work.
DatagridView1.Rows.Clear(), setting rowcount=0, setting datasource=null wont work. They give errors clearly.
Using a foreach and clearing the rows using Remove() seems to be work somewhat - I believe its not clearing the display though.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|