About DBGRID, the data is prohibited from moving the cursor to other rows in the insertmodification operation state!

zhaozj2021-02-16  63

Add the following code in the DataSet's BeforPost event:

IF (DS1.fieldByname ('wx_date'). isnull) or (DS1.fieldByname). asstring = ') THEN BEGIN ShowMessage (' Please enter the date! '); try ds1.active: = false; / / To continue to press Refresh Button Abort; Except ShowMessage ('illegal operation (when you enter or modify, the system does not allow the cursor to other lines!), Continue, click Refresh button!');

转载请注明原文地址:https://www.9cbs.com/read-18412.html

New Post(0)