datagridnoactivecellcolumn.vb

来自「vfp开发的进销存管理系统,运行相应系统的Setup安装程序」· VB 代码 · 共 17 行

VB
17
字号
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 + =
减小字号Ctrl + -
显示快捷键?