Jump to content
uniGUI Discussion Forums
Sign in to follow this  
MOGSY

dbGrid column index

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

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×