Dim dt As DataTable = DataTables("授权_Table1") Dim pd As Boolean = False For Each dr As DataRow In dt.DataRows If dr.RowState = DataRowState.Unchanged Then pd = True End If Next If pd = True Then MessageBox.Show("当前并未对数据进行授权?", "提示", MessageBoxButtons.OK, MessageBoxIcon.Question) Else