Browse / GRID / AllowEdit / Column

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Browse / GRID / AllowEdit / Column

Post 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:
have fun
Jimmy
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

Re: Browse / GRID / AllowEdit / Column

Post by trmpluym »

Maybe i do not understand your problem but do you mean:

COLUMNWHEN

Set the readonly column to {||.F.}
franco
Posts: 818
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Browse / GRID / AllowEdit / Column

Post 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. } }
All The Best,
Franco
Canada
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Browse / GRID / AllowEdit / Column

Post by AUGE_OHR »

hi,

Code: Select all

COLUMNWHEN
that is what i have search, THX :D
have fun
Jimmy
Post Reply