VB程序员博客

VB程序开发

请问如何将 DataGrid 控件的第一列锁定,使其不能更改,但其它的列可以更改。
谢谢!Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
    If DataGrid1.Col = 1 Then
        DataGrid1.AllowUpdate = False
    Else
        DataGrid1.AllowUpdate = True
    End If
End Sub
UP


标签: , , ,