var myDataSource = new SampleData();
ComboBoxCellType cbCell = new ComboBoxCellType()
{
ShowButton = true,
DataSource = myDataSource,
DataValueField = "ID",
DataTextField = "Name",
UseValue = true
};
FpSpread1.Cells[0, 1].CellType = cbCell;
//コンボボックス型セルに値を設定します
FpSpread1.Cells[0, 1].Value = 2;
Dim myDataSource = New SampleData()
Dim cbCell As New ComboBoxCellType() With {
.ShowButton = True,
.DataSource = myDataSource,
.DataValueField = "ID",
.DataTextField = "Name",
.UseValue = True
}
FpSpread1.Cells(0, 1).CellType = cbCell
'コンボボックス型セルに値を設定します
FpSpread1.Cells(0, 1).Value = 2