我需要帮助填充DataGridView
. 当我调试时,我可以看到它有记录,但它们没有显示在DataGridView
. 这是我的代码(请注意,我是 C# 的新手):
private void listCustomer_Frm_Load(object sender, EventArgs e)
{
DataGridView custDGV = new DataGridView();
customerList = CustomerDB.GetListCustomer();
custDGV.DataSource = customerList;
cm = (CurrencyManager)custDGV.BindingContext[customerList];
cm.Refresh();
}