作成日: 2014/10/15 最終更新日: 2015/01/15
文書種別
不具合
状況
修正済み
詳細
コンボボックスエディタのドロップダウンリストを閉じるときに発生するComboCloseUpイベントが発生しません。
回避方法
この問題はバージョン2.0.20143.18または4.0.20143.18で修正されました。
修正版の適用方法については、アップデートの方法を参照してください。
修正版を適用しない場合は、次の方法でも回避できます。
SetupEditorイベントでC1FlexGridのコンボボックスエディタを.NET Framework標準のComboBoxにキャストし、ComboBoxのDropDownClosedイベントを発生させます。
◎サンプルコード(VB)
修正版の適用方法については、アップデートの方法を参照してください。
修正版を適用しない場合は、次の方法でも回避できます。
SetupEditorイベントでC1FlexGridのコンボボックスエディタを.NET Framework標準のComboBoxにキャストし、ComboBoxのDropDownClosedイベントを発生させます。
◎サンプルコード(VB)
Private Sub C1FlexGrid1_SetupEditor(sender As Object, e As C1.Win.C1FlexGrid.RowColEventArgs) Handles C1FlexGrid1.SetupEditor
If C1FlexGrid1.Col = 0 Then
If DirectCast(C1FlexGrid1.Editor, ComboBox) IsNot Nothing Then
Dim cb As ComboBox = DirectCast(C1FlexGrid1.Editor, ComboBox)
AddHandler cb.DropDownClosed, AddressOf cb_DropDownClosed
End If
End If
End Sub
Private Sub cb_DropDownClosed(sender As Object, e As EventArgs)
MessageBox.Show("cb_DropDownClosed")
End Sub
If C1FlexGrid1.Col = 0 Then
If DirectCast(C1FlexGrid1.Editor, ComboBox) IsNot Nothing Then
Dim cb As ComboBox = DirectCast(C1FlexGrid1.Editor, ComboBox)
AddHandler cb.DropDownClosed, AddressOf cb_DropDownClosed
End If
End If
End Sub
Private Sub cb_DropDownClosed(sender As Object, e As EventArgs)
MessageBox.Show("cb_DropDownClosed")
End Sub
旧文書番号
80999