Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试仅在客户端进行更新、删除和添加操作,没有任何后期支持。通过网格。在网格中编辑数据后,我需要将数据保存到数据库
您可以通过多种方式实现它,具体取决于您的要求。一种方法是在网格外部放置一个按钮用于插入/更新选项或使用网格本身的 SAVE 方法。对于保存方法,您可以找到一个“OnInsertCommand”,它可以在服务器端创建一个事件,您可以在其中管理所有数据库插入。如果您仍然有问题,请告诉我。