Plain and simple, yet i have no idea how to do it..
Make a datagridview like you never used it.
Plain and simple, yet i have no idea how to do it..
Make a datagridview like you never used it.
Have you tried setting the "DataSource" property of the DataGridView to null?
tblAllEntries.DataSource = null;
That almost looked like it worked, but uhh, no..
Here is my tester program, so you can see what happens.
Tester
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.
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.