Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I access the caption of a header in a grid in cod
Message
From
21/06/2002 16:50:00
 
 
To
21/06/2002 05:31:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00670947
Message ID:
00671240
Views:
14
Hi Cetin,

You don't want to do Controls(1) because under certain circumstances, the Header may not be the first control in the column. What about...

This.Columns(nColumnCounter].Header1.Caption.

Header1 is the default name for the Header when Column is added.


>>I want to be able to change the caption of the header in a column from a grid programatically. How do I do this?
>>
>>I can access the column but no the header.
>>example:
>> This.Columns[nColumnCounter].Width = mylen
>>
>>Thanx
>>Merril
>
>This.Columns[nColumnCounter].Controls(1).Caption = ....
>Cetin
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform