Quantcast
Channel: DataGridView & datasource will not clear - Stack Overflow
Viewing all articles
Browse latest Browse all 3

DataGridView & datasource will not clear

$
0
0

I have a DataGridView that receives its information from a BindingList. When the program runs, the DGV should appear completely blank with no row data whatsoever. However, it instead creates a row with a couple values in some of the cells. In my Form startup, I've included

ExpenseList = new BindingList<ExpenseReportBackBone>();                        dataGridViewPurchaseData.DataSource = ExpenseList;            ExpenseList.Clear();            dataGridViewPurchaseData.Rows.Clear();

to try and empty it out, but it still appears as the screenshot shows. Why is this not opening to a blank DGV?

enter image description here


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images