1. 关于进编辑状态是显示不下的问题,目前没有什么好的办法解决。只有被行高调整的再高一点了。
2. 进编辑状态打开选择框的问题请尝试以下代码。
- Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
- AddHandler Me.gcMultiRow.CellBeginEdit , AddressOf gcMultiRow_CellBeginEdit
- End Sub
- Private Sub gcMultiRow_CellBeginEdit(sender As Object, e As CellBeginEditEventArgs)
- Me.BeginInvoke(New System.Action(AddressOf ShowDropDown))
- End Sub
- Private Sub ShowDropDown()
- Dim comboBox As ComboBox = TryCast(Me.gcMultiRow.EditingControl, ComboBox)
- If comboBox IsNot Nothing Then
- comboBox.DroppedDown = True
- End If
- End Sub
复制代码 |