2
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by Mr.BunyRabit
0

Have you tried setting the "DataSource" property of the DataGridView to null?

tblAllEntries.DataSource = null;
0

That almost looked like it worked, but uhh, no..

Here is my tester program, so you can see what happens.

0

Put this into your "Clear" button's code:

dTable.Columns.Clear();  // Clears the column defs
    dTable.Clear();          // Clears the data

The dTable is what actually controls what the DataGridView displays. So, clearing this out corrects the issue.

0

Put this into your "Clear" button's code:

dTable.Columns.Clear();  // Clears the column defs
    dTable.Clear();          // Clears the data

The dTable is what actually controls what the DataGridView displays. So, clearing this out corrects the issue.

..... That.... That worked Perfectly....
Thank you mcriscolo

you are really a great help.

Thank you.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.