Private Sub Grid_EditingControlShowing(ByVal sender As ObjectByVal e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles Grid.EditingControlShowing
        
If Grid.CurrentCell.ColumnIndex = COL_HINCD Then
            
If Not (TypeOf (e.Control) Is ComboBox) Then Exit Sub
            
Dim cbo As ComboBox
            cbo 
= TryCast(e.Control, ComboBox)
            
If cbo IsNot Nothing Then
                
RemoveHandler cbo.SelectedIndexChanged, AddressOf ComboBox_SelectedIndexChanged
                
AddHandler cbo.SelectedIndexChanged, AddressOf ComboBox_SelectedIndexChanged
            
End If
        
End If
    
End Sub

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2022-03-10
相关资源
相似解决方案