April 11th, 2013, 01:53 PM
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
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.