Custom Collection "Display Name"

  • Thread starter Bud James via DotNetMonster.com
  • Start date
B

Bud James via DotNetMonster.com

I have a custom collection(which inherits from the collectionbase and
implements ibindinglist) with various properties like DateOfSale,
DateOfPayment etc... When I bind to a grid for example I want the header
to display Sale Date and Payment Date. Is there a way to handle that in
the custom collection?? Specifically is there an attribute that i can set??
 
R

Rob Windsor [MVP]

Use a DataGridTableStyle and set the MappingName to the name of your custom
collection class.
 
B

Bud James via DotNetMonster.com

I really don't want to handle it in the gridstyle. For example, within my
collection i have a CreditRating property that i will never want displayed
in a grid. I could use the gridstyle to map the property then hide it but
since i will never want it displayed i prefer the set the Browsable
attribute of CreditRating to false
 

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

Top