Preventing Databound properties in a CollectionBase / IList / IBindingList

mogwai

Newcomer
Joined
May 18, 2003
Messages
4
Hi All,

I have a simple class (lets say it's called Customer) which has an associated collection case (called CustomerCollection) that inherits from CollectionBase.

The problem I have is that I am binding the collection class to a 3rd party grid control (Infragistics), but don't require all of the columns that are being bound to be displayed on the grid. The Customer class consists of a large number of properties that are necessary for other use within my app, but not necessary for grid display purposes.

Yes - I know, I could just as easily override the layout initialization to stop the unwanted columns from being displayed. But what I'm ultimately after is a method of preventing these properties from being bound in the first place !

Does anyone know if there is an attribute that can be applied to a property that will stop it from being available when the class is databound ?

Cheers,

Mike.
 
Back
Top