salut;
je rompli un datagrid depuis un datareader et un champs contient date j'ai mis la propriété allowsort a true;
quand j'affiche la date je veut l'afficher sous forme de shortdate format il y a une méthode qui converti le datetime en shortdatetimeformatstring mais quand je fait trier il le prend comme string mais pas une date time(c'est normal car la methode retourne un string)!!!
quand je laisse la date sous la forme datetime c bon mais moi je veut la forme shortdate.
j'ai pas trouvé une solution si quelqun a une solution merci de ma donner
Partager