Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column headers
Message
De
30/08/2005 00:38:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01045005
Message ID:
01045020
Vues:
29
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform