Jump to content


Photo

dbGrid column index

dbgrid column index

  • Please log in to reply
No replies to this topic

#1 MOGSY

MOGSY

    Member

  • uniGUI Subscriber
  • PipPip
  • 36 posts

Posted 09 July 2018 - 08:32 AM

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
 

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users