alfhabetagama Posted April 15, 2013 Share Posted April 15, 2013 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 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.