I'm using a DateTimePicker for date fields in an Access db Membership
app. Some of the date fields are empty, meaning they haven't been
filled out yet, or they cannot be. But when a record is read with
empty fields, their connected DateTimePicker's display the current
date.
Is there any way to have the DateTimePicker show as empty/blank?
---
Kyote 6 2541
You might investigate my date entry control
wich can handle db nulls and show a empty box and lots and loots more (
investigate the property`s of the control ) http://www.vbdotnetcoder.com/Downloa.../dateentry.zip
i wrote this control for the company i work for , for simple date entry
while still providing data binding ( the controls takes any entry that is
valid for cdate , 1-1 , 1 jan etc etc etc )
it comes with a sample project and full sourcecode.
regards
Michel Posseth
"Kyote" <ky********@nospamhotmail.comschreef in bericht
news:cu********************************@4ax.com...
I'm using a DateTimePicker for date fields in an Access db Membership
app. Some of the date fields are empty, meaning they haven't been
filled out yet, or they cannot be. But when a record is read with
empty fields, their connected DateTimePicker's display the current
date.
Is there any way to have the DateTimePicker show as empty/blank?
---
Kyote
On May 5, 9:47 pm, Kyote <kyote_l...@nospamhotmail.comwrote:
I'm using a DateTimePicker for date fields in an Access db Membership
app. Some of the date fields are empty, meaning they haven't been
filled out yet, or they cannot be. But when a record is read with
empty fields, their connected DateTimePicker's display the current
date.
Is there any way to have the DateTimePicker show as empty/blank?
---
Kyote
While binding the control; you can handle the Parse and Format events
of the binding object. In your event handlers, your can set a
different value(default value when database has null). Right now i
dont have the sample code, you can find good samples at msdn.
Yes ,,
But afaik you can`t set the control to a empty value when the db value
is a dbnull
"D2" <dh*****@yahoo.comschreef in bericht
news:11**********************@y5g2000hsa.googlegro ups.com...
On May 5, 9:47 pm, Kyote <kyote_l...@nospamhotmail.comwrote:
>I'm using a DateTimePicker for date fields in an Access db Membership app. Some of the date fields are empty, meaning they haven't been filled out yet, or they cannot be. But when a record is read with empty fields, their connected DateTimePicker's display the current date.
Is there any way to have the DateTimePicker show as empty/blank? --- Kyote
While binding the control; you can handle the Parse and Format events
of the binding object. In your event handlers, your can set a
different value(default value when database has null). Right now i
dont have the sample code, you can find good samples at msdn.
On May 6, 12:46 pm, "Michel Posseth [MCP]" <msn...@posseth.comwrote:
Yes ,,
But afaik you can`t set the control to a empty value when the db value
is a dbnull
"D2" <dhap...@yahoo.comschreef in berichtnews:11**********************@y5g2000hsa.go oglegroups.com...
On May 5, 9:47 pm, Kyote <kyote_l...@nospamhotmail.comwrote:
I'm using a DateTimePicker for date fields in an Access db Membership
app. Some of the date fields are empty, meaning they haven't been
filled out yet, or they cannot be. But when a record is read with
empty fields, their connected DateTimePicker's display the current
date.
Is there any way to have the DateTimePicker show as empty/blank?
---
Kyote
While binding the control; you can handle the Parse and Format events
of the binding object. In your event handlers, your can set a
different value(default value when database has null). Right now i
dont have the sample code, you can find good samples at msdn.
correct! we usually set a default date/time for display... again when
saving back, check whether user has changed it or not.. if no then we
set null in the db.
On Sat, 5 May 2007 21:30:44 +0200, "Michel Posseth [MCP]"
<ms****@posseth.comwrote:
>
You might investigate my date entry control
wich can handle db nulls and show a empty box and lots and loots more ( investigate the property`s of the control )
http://www.vbdotnetcoder.com/Downloa.../dateentry.zip
i wrote this control for the company i work for , for simple date entry while still providing data binding ( the controls takes any entry that is valid for cdate , 1-1 , 1 jan etc etc etc )
it comes with a sample project and full sourcecode.
Thank you Michael. I just downloaded it and will look at the sample
project in a few minutes. From your reply to D2 I think you understand
exactly what I'm trying to do and that this will indeed solve my
problems.
> regards
Michel Posseth
---
Kyote
On May 6, 12:46 pm, "Michel Posseth [MCP]" <msn...@posseth.comwrote:
>
>Yes ,,
But afaik you can`t set the control to a empty value when the db value is a dbnull
"D2" <dhap...@yahoo.comschreef in berichtnews:11**********************@y5g2000hsa.g ooglegroups.com...
>>On May 5, 9:47 pm, Kyote <kyote_l...@nospamhotmail.comwrote:
I'm using a DateTimePicker for date fields in an Access db Membership app. Some of the date fields are empty, meaning they haven't been filled out yet, or they cannot be. But when a record is read with empty fields, their connected DateTimePicker's display the current date.
Is there any way to have the DateTimePicker show as empty/blank? --- Kyote While binding the control; you can handle the Parse and Format events of the binding object. In your event handlers, your can set a different value(default value when database has null). Right now i dont have the sample code, you can find good samples at msdn.
correct! we usually set a default date/time for display... again when
saving back, check whether user has changed it or not.. if no then we
set null in the db.
this works: http://www.codeproject.com/cs/miscct...TimePicker.asp
you can customize your null value. for example, i have lots of time columns
that are set later. if null, they say Click To Set. in the click event,
i set the value to the current time. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: dan.benge |
last post by:
I have a form with some text boxes, checkboxes and DateTimePicker
controls. I've bound these controls to fields in a dataview. The
problem is when I set the filter on the dataview the controls are...
|
by: Richard |
last post by:
Hi,
I have a DateTime picker control on a form. The datetime
picker control is data bound to a column in a DataTable.
Yes I know about bound DateTime pickers and DBNull and
etc. so no troubles...
|
by: MajorTom |
last post by:
Hello
I need help. I have a datagrid that have a dataview as datasource.
in the keyup event of one textbox I use dataview.rowfilter = some.text;
when the condition of my rowfilter return...
|
by: Uchiha Jax |
last post by:
When using a strongly typed dataset (generated from the Visual Studio IDE
from an XSD file) and databinding I get a really odd error when binding to
both a combox and a datetimepicker.
I bind...
|
by: eye5600 |
last post by:
Is there a cure for the problems using databinding with a DateTimePicker?
I find that a) sometimes it works, sometimes it doesn't, and b) it fails
silently causing all databinding on the DataSet...
|
by: Jason MacKenzie |
last post by:
I have what is probably a simple question. I have a Windows form with some
simple databinding going on.
I have some navigation buttons like so for the Move First button:
...
|
by: Pieter |
last post by:
Hi,
I'm looking for a DateTimePicker that supports 100% databinding (and support
null-values)...
It's a shame that the normal control doesn't, but when searching on the
internet, I didn't find...
|
by: Kevin |
last post by:
I have put a VS2005 sample project up here:
http://www.kevinandkiran.com/CSharpApplication.zip (its only 50k)
Basically I have a class that contains a date property, which is
initialised to...
|
by: =?Utf-8?B?TWljaGFlbA==?= |
last post by:
Hi Everyone,
I've got a real strange issue with the datetimepicker (DP) that just seemed
to start (at least just noticed today). During the load process of the form
(actually contains 3...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |