我想删除窗口中绑定表(可编辑)中所有行,结果只能删除单行,请教专家代码有何问题?谢谢With Tables("时间")
If MessageBox.Show("是否全部删除吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes
For i As Integer = .BottomPosition To .TopPosition Step -1
.Rows(i).Delete
Next
End If
End With