Information générale
Catégorie:
The Mere Mortals .NET Framework
Hi Jim,
Join the club. I think the message I just posted will help: Thread ID 863988. "Adding a Combobox to a DataGrid". Note there is also a format property for the column style. Check out the .Net help by searching on "Custom DateTime Format Strings" to get a handle on how to define the format strings.
Regards,
Terry Carroll
>I've been a developer for over 30 years, using FoxPro/Base for over 15, but there's a lot I don't yet know about .Net. I'm creating my first C# app, a port of a simple VFP app. Day 1 I'm cruising, but Day 2 I hit a problem with the DataGrid (mmDataGrid).
>
>I have fields stored in my only table as hundredths of a second, but the value can be hours. I would like to format the data as "hh:mm:ss.ss" in the DataGrid, but can't quite figure out how to do it. This was really simple in VFP. I just added my text box with a modified Refresh method to the grid and deleted the default textbox. That doesn't seem to be an option in C#.
>
>I read about the Format Event and have tried to set one up by finding the binding for the column text box using the DataBindings.GetEnumerator() method in the constructor after loading the data or in the load event, but GetEnumerator always returns no bindings.
>
>Can somebody please help put me on the right track here?
>
>...Jim Hansen
>Canyon Country Consulting
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement