Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datagrid column properties
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00889417
Message ID:
00889842
Views:
39
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.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform