Jump to content

dbGrid column index


MOGSY

Recommended Posts

Hi

 

for dbgrid at run time, it is possible to set the width, visible, however index has no effect and column position will stay as it was specified on the select statement.

       

 

      works

           aDataSet.FieldByName(aField).Visible := True;

           aDataSet.FieldByName(aField).DisplayWidth := aWdt;

 

     do not work

           aDataSet.FieldByName(aField).Index := aIndx;

 

I would appreciate your help

 

Thank you

 

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...