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