Home All Groups Group Topic Archive Search About

datagridview, using calendar control selecting a date for column

Author
7 Jun 2006 8:31 PM
Bob
How do I show a calendar control or another appropriate control to pick a
date and time for a cell in a column in a datagridview?

Thanks for any help.

Bob

Author
8 Jun 2006 11:05 AM
Ken Tucker [MVP]
Bob,

        There is a sample datetimer picker datagridview column in the
datagrid faq.  There is a link on this vb-tips page

http://www.vb-tips.com/default.aspx?ID=1b31f4f7-0596-4b8e-aaf5-e16db864a414

Ken
-----------------
Show quoteHide quote
"Bob" <bduf***@sgiims.com> wrote in message
news:OhbFMFniGHA.2220@TK2MSFTNGP05.phx.gbl...
> How do I show a calendar control or another appropriate control to pick a
> date and time for a cell in a column in a datagridview?
>
> Thanks for any help.
>
> Bob
>
>
Author
8 Jun 2006 12:38 PM
Bob
Did not find info required at this location, found some info in msdn at
http://msdn2.microsoft.com/en-us/library/7tas5c80.aspx however datagridview
in sample is created in code, mine is created an put on the for and
localized, so I don't want to write oodles of code to get the datagridview
placed on the form and fitted in place. After all, that what the IDE is
suited for and its supposed to save us time.

Question is, I created the two classes (created new class file in project)
now I need to make the columnd of my datagridview2 control on my form to
display the datetimepicker in column named DateActivated. My datagridview
control is bound to a table in a dataset already. Its not obvious from the
sample how I host the control in the column in such a case. I know it needs
to get done in the form load event but the code escapes me.
Can you tell me how?

Thanks a lot in advance.
Bob

Show quoteHide quote
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:e5yOntuiGHA.3440@TK2MSFTNGP02.phx.gbl...
> Bob,
>
>        There is a sample datetimer picker datagridview column in the
> datagrid faq.  There is a link on this vb-tips page
>
> http://www.vb-tips.com/default.aspx?ID=1b31f4f7-0596-4b8e-aaf5-e16db864a414
>
> Ken
> -----------------
> "Bob" <bduf***@sgiims.com> wrote in message
> news:OhbFMFniGHA.2220@TK2MSFTNGP05.phx.gbl...
>> How do I show a calendar control or another appropriate control to pick a
>> date and time for a cell in a column in a datagridview?
>>
>> Thanks for any help.
>>
>> Bob
>>
>>
>
>