bonjour,
je voulais mettre un
DataFormatString
="{0:d}"sur un champ date d'une gridview por avoir ma date au format jj/mm/aaaa : pas moyen il me met toujours jj/mm/aaaa hh:mm:ss
déja je comprend pas chez microsoft ça marche et en plus dans mase SQL c'est un type : smalldatetime
bref je me résoult à faire un templatefield :
ItemTemplate
>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("dn", "{0:d}") %>'></asp:Label>là j'ai ma date comme je veux : jj/mm/aaaa !! mais maintenant quand je fais un :
Me
.GridView1.SelectedRow.Cells(4).Text
ma string est vide
bref....je voudrais juste récuperer la string de ce templatefield help !! je continue à chercher (cela ne pouvait pas marcher avec mon dataformatstring{0:d}#!!!....

c'étais trop beau!!)