7、TForm50.stgPartListCanEditCell(Sender:TObject;ARow,ACol:Integer;varCanEdit:Boolean); Var I:integer; begin if(stgPartList.cells[cC1Data_Flag,ARow]='')or(stgPartList.cells[cC1Data_Flag,ARow]='C')thenbegin canEdit:=false; exit;
8、 end elsebegin forI:=0tocColQty1dobegin ifACol=Ithenbegin ifstgPartList.cells[cC1Data_Flag,aRow]='C'thenCanEdit:=false