FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType();
cb.DataSource = dt;
cb.ShowButton = false;
cb.DataMember = "PZTYPE/PZNAME";
cb.DataTextField = "PZNAME";
cb.DataValueField = "PZTYPE";
cb.UseValue = true;
FpSpread2.ActiveSheetView.Cells[1, 3].CellType = cb;
设置1,3单元格为ComboBoxCellType 类型,当为此单元格用以下语句赋值的时候
FpSpread2.Cells[1, 3].Text = "库房1";的时候,不显示。
|
|