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

DateTimePicker in DataGridView Msdn2 example

P: 20
Ok, I'm trying to make a column in my data grid be a DateTimePicker column.
I copied and pasted all the code from the msdn website. Now, the difference in my code and the microsoft code is that my datagrid is not in the startup form. Also, the form it's in is an MdiChild.

So I get errors when the form containing the datagrid is opened.

Next, when i go and take out the whole mdichild thing, the form with the datagrid won't recognize the control inputs. The first command I have in the onLoad function is setting a checkbox. It says "Object Reference not set to the instance of an object". So basically it's not recognizing it's own inputs.

Does someone now how to fix this? Thank you very much
Apr 25 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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