?
Solved

host datetime picker in a datagridview

Posted on 2009-04-19
5
Medium Priority
?
450 Views
Last Modified: 2012-05-06
I wanted to place a datetimepicker in the 4th column of my datagridview..How can i do this..I tried some sample code from msdn...everything woked fine when i tried to run it.....but when i added the same code to my application, which already has a datagrid view...the visual studio designer generated an error..
"The service System.Windows.Forms.Design.ISelectionUIService already exists in the service container. Parameter name"
0
Comment
Question by:yuvaratna
  • 3
  • 2
5 Comments
 
LVL 18

Accepted Solution

by:
Priest04 earned 1500 total points
ID: 24186016
Have you gone through this article on MSDN? Its pretty self-explaining

http://msdn.microsoft.com/en-us/library/7tas5c80(vs.80).aspx

Goran
0
 

Author Comment

by:yuvaratna
ID: 24186116
i tried that code snippet, it woked fine when i tried to run on a new form, but when i added the same code to a form that already has datagrid view, ot throwed an error "The service System.Windows.Forms.Design.ISelectionUIService already exists in the service container. Parameter name " 
0
 
LVL 18

Expert Comment

by:Priest04
ID: 24186735
Which part of the code have you pasted on this existing form?
0
 

Author Comment

by:yuvaratna
ID: 24186860
i pasted the whole code...the visual studio designer ois causing a problem, because there might be a datagrid view which is added dynamically to the form...and as i already have a datagrid view on the form..it might be throwing the error...

when i tried to run the samne code on a new form, it is working perfectly!
0
 
LVL 18

Expert Comment

by:Priest04
ID: 24187848
What is the name of this form and datagridview control that is already on the form?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Loops Section Overview
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question