⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datagridnoactivecellcolumn.vb

📁 实现企业的资料管理
💻 VB
字号:
Public Class DataGridNoActiveCellColumn
    Inherits DataGridTextBoxColumn
    Private SelectedRow As Integer = -1
    Protected Overloads Overrides Sub Edit( _
    ByVal source As CurrencyManager, _
    ByVal rowNum As Integer, ByVal bounds As Rectangle, _
    ByVal read As Boolean, ByVal instantText As String, _
    ByVal cellIsVisible As Boolean)
        If SelectedRow > -1 And SelectedRow _
        < source.List.Count + 1 Then
            Me.DataGridTableStyle.DataGrid.UnSelect(SelectedRow)
        End If
        SelectedRow = rowNum
        Me.DataGridTableStyle.DataGrid.Select(SelectedRow)
    End Sub
End Class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -