如何禁用详细网格中的 +(添加)按钮?
How to disable the + (add) button in detail grid?
我已经创建了主从自定义屏幕,有什么方法可以禁用添加 (+) 以防止在不在主从中输入数据的情况下在详细网格中输入记录?
目前 Location & Location color add button enabled and it allows enter records
您可以使用类似的东西:
DetailsView.AllowInsert = MasterView.Select().Count>0;
我已经创建了主从自定义屏幕,有什么方法可以禁用添加 (+) 以防止在不在主从中输入数据的情况下在详细网格中输入记录?
目前 Location & Location color add button enabled and it allows enter records
您可以使用类似的东西:
DetailsView.AllowInsert = MasterView.Select().Count>0;