你好,我绑定ComboBoxCellType时给ItemData绑定数字,为什么使用fpCutBed.ActiveSheet.Cells[row, iCutPartType].Value 不能得到数字而是字符
FarPoint.Win.Spread.CellType.ComboBoxCellType cb1 = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
string[] cbstrl;
cbstrl = new string[] { "A", "B", "C", "D", "E", "F", "G", "H" };
string[] strval;
strval = new string[] { "1", "2","3","4","5","6","7","8" };
cb1.Items = cbstrl;
cb1.ItemData = strval;
cb1.EditorValueChanged += new EventHandler(cb1_EditorValueChanged);
fpCutBed.ActiveSheet.Columns[iCutPartType].CellType = cb1;
fpCutBed.ActiveSheet.Cells[row, iCutPartType].Value; |
|