Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date displays as DateTime
Message
De
22/12/2009 11:52:58
 
 
À
21/12/2009 19:47:10
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01439892
Message ID:
01440162
Vues:
35
>My guess would be just intellisense your way to the property.
>
>I just tried it and got
>
> dgvMyGrid.Columns.Item(1).CellTemplate.Style.Format = "d"
>or
> dgvMyGrid.Columns.Item("MydateColumn").CellTemplate.Style.Format = "d"
>
>( I have to admit it wasn't immediately apparent <s> )
>
>Of course I haven't done any webforms yet and I'm just assuming the control works the same way there, but give it a try and let me know
>
>oh, and there is a cellformatting event for the dgv, so you may have to handle that and set it there if you are doing it programmatically.
>
>But is this necessary on a web form? Can't you set the property on the grid control itself at design time?
>

The data columns are not known at design time. The user will be selecting the columns to display from a CheckBoxList on the form.

Thanks again for your response. I very much appreciate your help.

.......Rich
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform