Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetCaption method to grid
Message
From
24/02/2000 20:12:22
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00337003
Message ID:
00337248
Views:
14
>>>Mark,
>>>>>>>
>>>>>>>I want to add method to my grid class, which allows me to change captions in all columns of the grid to be proper of the original content, i.g.
>>>>>>>Before
>>>>>>>stnum| street |stnumext
>>>>>>>After
>>>>>>>Stnum|Street|Stnumext
>>>>>>>
>>>>>>>The problem is that I don't know all my collumns names and headers names. What is the easiest way to achieve this functionality?
>>>>>>
>>>>>>for i = 1 to thisform.grid1.columncount
>>>>>> thisform.grid1.columns(i).header1.caption = 'test'
>>>>>>endfor
>>>>>>
>>>>>>Mark
>>>>>
>>>>>
>>>>> I thought about something similar too... But there is a problem. If I have grhFName instead of Header1?
>>>>
>>>>thisform.grid1.columns(i).controls(1).caption
>>>
>>>Thanks a lot. It works! I'll add this method to our base grid class. Actually, advise to do this the person, who is responsible for updating our classes.
>>No problem. BTW, what does your signature mean?
>>Mark
>
>This is from Talmud: the more wisdom gives us more sadness... I don't know the correct phrase in English (don't have an English Bible, so I put it in Hebrew, but using English letters...)
Thanks, I thought it's converted Russian.
Mark
Previous
Reply
Map
View

Click here to load this message in the networking platform