Page 1 of 1

Browse / GRID / AllowEdit / Column

Posted: Fri Aug 14, 2020 11:40 pm
by AUGE_OHR
hi,

when enable edit you can use every Column but i don“t want e.g. change Column 1

i know i can check it using

Code: Select all

LOCAL nCol := This.CellColIndex
but my Question is about hole Column which i want to "freese" while i want to add/delete Column :idea:

Re: Browse / GRID / AllowEdit / Column

Posted: Sat Aug 15, 2020 8:08 am
by trmpluym
Maybe i do not understand your problem but do you mean:

COLUMNWHEN

Set the readonly column to {||.F.}

Re: Browse / GRID / AllowEdit / Column

Posted: Sat Aug 15, 2020 4:20 pm
by franco
I think for what you want Trmpluym is right.
If you have 4 columns and you want to edit 2 and 2, not edit 1 qnd 4, in the define of grid
COLUMNWHEN { {|| .F. }, {|| .T. }, {|| .T. }, {|| .F. } }

Re: Browse / GRID / AllowEdit / Column

Posted: Sat Aug 15, 2020 9:30 pm
by AUGE_OHR
hi,

Code: Select all

COLUMNWHEN
that is what i have search, THX :D