呵呵,这种问题一般的解决办法是,看看全部事件:http://www.foxtable.com/help/topics/1446.htm
检查有没有增加文件的事件,发现一个:http://www.foxtable.com/help/topics/2638.htm
参考这个事件的说明写代码,代码为: If e.DataCol.name = "文件" Then If e.DataRow.IsNull("文件") = False then e.Cancel = True MessageBox.show("只能添加一个文件!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information) End IfEnd If