请帮助我在C#中的新手我的问题是我定义我的类lacry到customerList(姓名,地址和so..on)我的问题是我有一个形式的datagridview(custDGV),并试图在这里LAOD到它是我的代码如何从一个List载入数据到datagridview <>
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();
}
当我运行它显示为空白。如果有些患者告诉我我需要做什么
看看这个,看看如何绑定到详细的datagridview http://msdn.microsoft.com/en-us/library/ fbk67b6z(v = vs.90).aspx – Nomad101 2013-05-12 05:51:14
customerList是一个列表对不对? –
jomsk1e
2013-05-13 04:33:36