Control custom property

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

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
 
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top