Subject Re: Column Sequence in Grid
From Milind Nighojkar <milinigh@yahoo.com>
Date Mon, 19 Sep 2022 04:34:35 -0400
Newsgroups dbase.getting-started


Can we play with code..?
example of code...

  columns["COLUMN2"] = new GRIDCOLUMN(form.GRID1)
      with (columns["COLUMN2"])
         dataLink = form.employees1.rowset.fields["doj"]
         editorType = 1        // EntryField
         width = 12.4286
      endwith

here can we pass variables for ["COLUMN2"]   and ["doj"]

Regards

Milind Nighojkar



Ken Mayer Wrote:

> On 9/16/2022 9:25 AM, Milind Nighojkar wrote:
> > Is there any way to change the column sequence in a grid (not by drag and drop menthod.) thru code before opening  a form.
> >
> > Example : Say column 3 is date filed and should me moved to column 5 and column 5 to col 3.
> >
> > Regards
>
> Miland --
>
> If this is how you want the form to look, then please follow the
> instructions I gave you in email.
>
> If, however, you want the user to be able to move the columns, and then
> when the form opens the next time, display the columns in that sequence,
> say so. The instructions I gave you in email will solve the way you
> describe it here. You don't need to *change* the columns in program
> code, just define them in the sequence you want them in the first place.
>
> Ken
>
> --
> *Ken Mayer*
> Ken's dBASE Page: http://www.goldenstag.net/dbase
> The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
> dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
> dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
> dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
> dBASE DOS to Windows Tutorial:
> http://www.goldenstag.net/dbase/DtoWTutorial/00_Menu.htm
>
>