Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting DataGrid Column
Message
From
07/01/2004 13:03:16
 
 
To
07/01/2004 07:36:15
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00864572
Message ID:
00864759
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform