Dim DRS1 As List (OF DataRow) Dim r As DataRow Select e.DataCol.Name Case "group" If e.NewValue <> Nothing Then Dim fdr As DataRow = DataTables("角色管理").Find("角色 = '" & e.NewValue & "'") If fdr IsNot Nothing Then fdr("使用")=True End If End If If e.OldValue <> Nothing Then Dim fdr As DataRow = DataTables("角色管理").Find("角色 = '" & e.OldValue & "'") If fdr IsNot Nothing Then If e.DataTable.Find("group = '" & e.OldValue & "'") Is Nothing Then fdr("使用")=False End If End If End If End Select
|