Jump to content

UNIDBGRID RECNO


alfhabetagama

Recommended Posts

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

post-891-0-94062200-1365991113_thumb.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...