Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataFormatString of DataGrid column
Message
 
 
À
07/04/2005 17:58:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01002438
Message ID:
01002566
Vues:
17
>>I want to format a datagrid column which has a numeric value to appear as 6-digit number with leading zeros. E.g.:
>>
>>034555
>>000333
>>000003
>>008674
>>
>>What is the value I should use in the DataFormatString property?
>>
>>Thank you in advance for any help.
>
>I think this would do:
>
>{0:000000}
>

Cetin,

Thank you for your suggestion. When I tried to apply your code I realized (with the help of error from .net <g>) that HyperLinkColumn does not have property DataFormatString. So I will have to go through properties of HyperLinkColumn to see if there is
something equivalent to DataFormatString.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform