o = CreateObject('grid')
o.ColumnCount = 1
? o.column1.RemoveObject('header1')
? o.column1.ControlCount
? o.column1.AddObject('header1','someHeaderClass')
? o.column1.ControlCount
Tested OK with VFP9, don't know about VFP7
>Hi. Please note that I am a vfp7 user. Problem: I cannot change a column header "on the fly". Will someone kindly suggest code syntax and placement of the code? The form has one grid and is a modal form.
>
>Thanks, Randy
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/Never explain, never complain (Queen Elizabeth II)