hai advance ...
can anybody help me!!
I have a problem with record numbers on UniDBGrid, first RecNo always -1,I want to be the first RecNo 1.
next RecNo no problem, what's the solution.
I use this code on procedure CalcFields
if DM.QueryDataPending.FieldByName('RecNo').AsInteger = -1 then
DM.QueryDataPending.FieldByName('RecNo').AsInteger := DM.DSDataPending.DataSet.RecNo+2
else
DM.QueryDataPending.FieldByName('RecNo').AsInteger := DM.DSDataPending.DataSet.RecNo;
there're some thing wrong with this code?
Matur Nuwun / thank before