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
22/06/2002 10:58:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/06/2002 16:50:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00670947
Message ID:
00671362
Views:
14
John,
Header1 might not be the name too :) It's extremely rare it's not the first control but yes possibility exists :)
Cetin

>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform