List<Item> list = new List<Item>(); list.Add(new Item() { ID = 1, Code = "A10001", Name = "产品A1", Description = "产品A1" });list.Add(new Item() { ID = 2, Code = "A10002", Name = "产品A2", Description = "产品A2" });list.Add(new Item() { ID = 3, Code = "A10003", Name = "产品A3", Description = "产品A3" });list.Add(new Item() { ID = 4, Code = "A10004", Name = "产品A4", Description = "产品A4" });list.Add(new Item() { ID = 5, Code = "A10005", Name = "产品A5", Description = "产品A5" });c1FlexGrid1.DataSource = list;
点击增行事件list.Add(new Item() { ID = 6, Code = "A10006", Name = "产品A6", Description = "产品A6" });c1FlexGrid1.DataSource = list;但是GRID数据不变化呢?或需要什么刷新?
|
|