By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,955 Members | 1,756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,955 IT Pros & Developers. It's quick & easy.

how to get data from datetimepicker to combobox

P: 1
Dear all,

I am working C#.net2005.I Have problem that is i have one datetimepicker and combobox.now i have msaccess databse.in that database i have datatime field.but i need to get datetime into datetimepicker when user click the datetimepicker the data has to come form database and it has to set date form database.based on that date i need get persons are in combobox.

means once i click datetimepicker it need to access the data from database(Ms Access) and set that date if not avilable that date in database "say not avilable" and if it is avialble combobox (which is perosons list which is also comming form databse) personslist need to be dispalyed in combobox.

please can help for code or sample for this. I am working on C#.net

Advanced Thanks.

venkat
Apr 26 '07 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
Dear all,

I am working C#.net2005.I Have problem that is i have one datetimepicker and combobox.now i have msaccess databse.in that database i have datatime field.but i need to get datetime into datetimepicker when user click the datetimepicker the data has to come form database and it has to set date form database.based on that date i need get persons are in combobox.

means once i click datetimepicker it need to access the data from database(Ms Access) and set that date if not avilable that date in database "say not avilable" and if it is avialble combobox (which is perosons list which is also comming form databse) personslist need to be dispalyed in combobox.

please can help for code or sample for this. I am working on C#.net

Advanced Thanks.

venkat
I find your question quite confusing.

What have you tried so far?

Are you having problems setting the dateTimePicker with the value you have retrieved from the database?

Or

Are you having a problem putting the "not available" into the database when the user selects a date?

Also I don't know what "persons" are.


-Frinny
Apr 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.