Mat,
You need to define GridColumnStyles for this to work.
>Cathi,
>
>Thank you for pointing me to the sample code, that is very nicely done. I added a TableStyle, but I still can not get at the individual columns?
>
>I have not defined any GridColumnStyles and I was hoping I did not have to since the number of columns will vary and I only need to set the Alignment and Width. In VFP, I could just use the SetAll command. I don't mind looping through the columns, but it appears the column collection is empty.
>
>Thanks again for your help,
>
>Mat
>
>>Hi Mat,
>>
>>You will need to use TableStyles to adjust the widths. Here is sample code that shows how to adjust the width based on the largest value in a column. It will show you how to make the appropriate adjustments.
>>
>>
http://www.syncfusion.com/faq/winforms/search/877.asp>>
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi