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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...