Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying a DateTime field in a grid
Message
From
12/04/2000 09:53:44
Gerald McKinsey
Keystone Consulting Services, Inc.
Yorktown, Indiana, United States
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00358006
Message ID:
00358644
Views:
9
Hi Matthew,

>Are you sure the datetime field is the problem? You tested this control source >with a textbox, but have you tested changing the control source for this >column in the grid to something else. If the problem persists, it could be >another column.



Originally the grid was a two column grid without a datetime field and it worked perfectly. When I added the column with the datetime source I started getting the 'Invalid ControlSource' message. I took the datetime column away, no error. I added it back, error. So, then I changed the grid to a one column grid and only put in the datetime column. I recieved the error. I took the column away, I got no error. I'm pretty sure I've approached it from every angle, but I have been working on this particular problem for a while, so maybe I'm missing the forest for the trees.

Also, I approached it this way: I added a expression to my view that converted the datetime value to the date portion only, and removed the datetime field. When I specify that as the ControlSource, it works. The problem is that I don't think you can mark that as updateable in the view. So I chose not to do it that way.

Would it help if I just added an instance of a normal text box to the grid column instead of the default gridtextbox control?

TIA,

Brian
Previous
Reply
Map
View

Click here to load this message in the networking platform