直接设置键值对不行,要处理成两个数组
- string[] cbstr;
- cbstr = new String[] {"One", "Two", "Three"};
- string[] strval;
- strval = new String[] {"1", "2", "3"};
- combo.Items = cbstr;
- combo.ItemData = strval;
- combo.EditorValue = FarPoint.Win.Spread.CellType.EditorValue.ItemData;
- fpSpread1.Sheets[0].Cells[0, 0].CellType = combo;
复制代码 |