{I+=codeWee;} |
// step1. public class MyData { public string Data1 { get; set; } public string Data2 { get; set; } public string Data3 { get; set; } }; // step2. public BindingList<MyData> m_MyDataList = new BindingList<MyData>(); // step3. myDataGridView.DataSource = new BindingSource(m_MyDataList, null);