作成日: 2017/03/29 最終更新日: 2017/03/29
文書種別
使用方法
詳細
コンボボックス型セルのデフォルト設定では、セルの編集が開始したタイミングでセルにドロップダウンリストが表示されます。
常にドロップダウンリストを表示したい場合は、コンボボックス型セルのShowButtonプロパティをTrueに設定します。
◎サンプルコード(VB)
◎サンプルコード(C#)
常にドロップダウンリストを表示したい場合は、コンボボックス型セルのShowButtonプロパティをTrueに設定します。
◎サンプルコード(VB)
Dim cb As New FarPoint.Web.Spread.ComboBoxCellType(New String() {"One", "Two", "Three"})
cb.ShowButton = True
'1列目に設定
FpSpread1.ActiveSheetView.Columns(0).CellType = cb
cb.ShowButton = True
'1列目に設定
FpSpread1.ActiveSheetView.Columns(0).CellType = cb
◎サンプルコード(C#)
FarPoint.Web.Spread.ComboBoxCellType cb=new FarPoint.Web.Spread.ComboBoxCellType(new string[]{"One","Two","Three"});
cb.ShowButton = true;
//1列目に設定
FpSpread1.ActiveSheetView.Columns[0].CellType = cb;
cb.ShowButton = true;
//1列目に設定
FpSpread1.ActiveSheetView.Columns[0].CellType = cb;
旧文書番号
40228