本帖最后由 jstzwhc 于 2023-4-28 15:06 编辑
spread.net for winform 12的代码如下
Dim cbstr02 As String()
cbstr02 = New String() {"完納", "取消", "残数取消", "新規発注", "課題無し", "調整済", "未回答", "納期回答異常", "遅延(納期無回答)", "遅延(回答可能日)", "遅延(回答可能日)", "遅延(回答可能日)"}
Dim cbval02 As String()
cbval02 = New String() {"002001", "002002", "002003", "002004", "002005", "002006", "002007", "002008", "002009", "002010", "002011", "002012"}
Dim cmbocell02 As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
cmbocell02.Items = cbstr02
cmbocell02.ItemData = cbval02
cmbocell02.AutoSearch = FarPoint.Win.AutoSearch.SingleCharacter
cmbocell02.Editable = False
cmbocell02.MaxDrop = 6
spread.ActiveSheet.Cells(0, 1, .ActiveSheet.RowCount - 1, 1).CellType = cmbocell02
显示效果如下图,请问如何解决
请问可以设置ComboBox为只读吗?
|