Ed,
I swear I tried that and it didn't work. But, it works now [argh!!]
Thanks for your quick response.
Jim
>>I have a form with a 2 column grid on it.
>>
>>At runtime, I want to add additional columns.
>>
>>In the Refresh method, I can increase the column count. The display shows me the additional columns. However, when I try to access the columns property of the grid at runtime, like so:
>>
>>
>> loCol = this.grdProjEnrollSummary.Columns.Item(lnColIx)
>>
>>
>>I get the error messag: "Unknown member Columns".
>>
>>The reason I want to retrieve a column object is for purposes of formatting the column and setting the header text.
>>
>>Would it be better to use the AddColumn method, and explicitly name the new columns and their headers? At least then I would be able to access these columns by name.
>>
>>Thanks for your help.
>>
>>Jim
>
>You could access it by
>oColumn=This.grdProjEnrollSummary.Columns(nCollx)