Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Column headers
Message
From
30/08/2005 00:38:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01045005
Message ID:
01045020
Views:
31
>Hilmar,
>If you set a break point in your code and view the dataset or datatable in the Watch window you will see that the DataColumn.Caption property is set correctly ( I had to test your code to be 100% sure).
>I think the reason you think the DataColumn.Caption property is not set is because the grid's column header is set to the column name rather than the column caption (correct me if I am wrong).

Yes, that is what I observed. But according to the description, I thought that the Column.Caption WAS the text that showed at the top of the column.

By the way, I don't know whether it makes a difference, but in this particular case I was not getting the data from a table; I was adding rows and columns programmatically.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform