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

Control custom property

P: n/a
Hi all,

I'm creating my own DataGridViewColumn class, and have added a string
property to it which should be settable via the Property designer.
I've gotten the property to show up, but even if i set a value, the
code generated sets the property to null, not the value I typed.

Any ideas?
Thanks

Mar 30 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
The generated code will show null only when if you have not initalized the
property in the DataGridViewColumn Class..., other than that.. what ever
you set should be available at run time.. are you seeing it at runtime ??

VJ

"Andy" <aj*****@alum.rit.edu> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
Hi all,

I'm creating my own DataGridViewColumn class, and have added a string
property to it which should be settable via the Property designer.
I've gotten the property to show up, but even if i set a value, the
code generated sets the property to null, not the value I typed.

Any ideas?
Thanks

Mar 30 '06 #2

P: n/a
Nope. I can set the property, close the property browser, reopen it,
and its gone.

The code in the designer file has:

myCol.myProp =null; // Should be the value i set.

Apr 4 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.