Select Case e.DataCol.name Case "第一列","第二列","第三列" If e.NewValue IsNot Nothing Then Dim nms() As String = {"第一列","第二列","第三列"} For Each nm As String In nms If nm <> e.DataCol.name AndAlso e.NewValue = e.DataRow(nm) Then e.cancel = True End If Next End If End Select