Link to home
Start Free TrialLog in
Avatar of yuvaratna
yuvaratna

asked on

host datetime picker in a datagridview

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"
ASKER CERTIFIED SOLUTION
Avatar of Priest04
Priest04
Flag of Serbia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yuvaratna
yuvaratna

ASKER

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 " 
Which part of the code have you pasted on this existing form?
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!
What is the name of this form and datagridview control that is already on the form?