Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PropertyDescriptor is null issue

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
billcch



Joined: 19 Jan 2007
Posts: 44

PostPosted: Fri May 23, 2008 2:09 am    Post subject: PropertyDescriptor is null issue Reply with quote

We are implementing dynamic list, and using GetCellData and SetCellValue to setup each cell, there is an UIEditor problem now...

Code:

TestEditor.PainValue(System.Drawing.Design.PaintValueEventArgs e)


which e.Context is UniversalEditBox, e.Context
e.Context .PropertyDescriptor is null

It is a problem for us, because we cannot modify all different UIEditors, and during SetCellValue, we only get information from xml file and create UIEditor instance through Refection class, which means the UIEditor is created in run-time.

Any suggestion?
Thanks.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri May 23, 2008 7:24 am    Post subject: Reply with quote

The UniversalEditBox ITypeDescriptorContext interface always returns null for PropertyDescriptor. This is because it does not implement a mechanism to get the original descriptor that might be associated with the value. Since values do not necessarily have an associated property descriptor you should probably not implement your editor so that it depends on getting one. If you give us a bit more detail about what you are trying to implement and what you were hoping to get from the PropertyDescriptor we may be able to suggest an alternative way of doing it.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group