Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting DataGrid Column
Message
De
07/01/2004 13:03:16
 
 
À
07/01/2004 07:36:15
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00864572
Message ID:
00864759
Vues:
11
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
Fil
Voir

Click here to load this message in the networking platform