Override GetValue and SetValue on the derived PropertyDescriptor class.
Both of these methods will hand you objects contained in your
ITypedList.  In these methods, you can use the Name prop (or other
custom discriminator) to do your custom access/mutation of on your
objects.  You'll want to override IsReadOnly prop to return false, and
override PropertyType to return the desired type (usually
typeof(string)).

HTH,
--Xavier

-----Original Message-----
From: Jay Glynn [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 12, 2002 11:35 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Implementing ITypedList


I'm trying to implement ITypedList on a collection class. I am having a
hard time in creating the derived PropertyDescriptor class. I am able to
bind the collection class to a grid (UltraWinGrid) and dislay the
columns that I have created PropertyDescriptors for, but am unable to
edit the data from the grid. I have narowed this down to my
implementation of the PropertyDescriptors. Does anyone know of a source
of information on how to implement one of these guys?

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or subscribe to other DevelopMentor lists at
http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to