Custom TypeDescriptor, TypeDescriptionProvider objects not showing up for SQL Reporting

  • Thread starter Thread starter andy_from_fl
  • Start date Start date
A

andy_from_fl

I created a custom business object from the ground up- I applied the
data binding interfaces, coded every property by hand, custom
constructors, the whole deal. I wanted the columns to appear in a
default order, so I made my own TypeDescriptor and
TypeDescriptionProvider and made that provider the default by an
attribute at the class level. As soon as I added that attribute, my Sql
Client reportviewer control wouldn't dispaly any data, even though it
acknowledged its datasource to have rows. The problem is that I
overrode the GetProperties() method, without attributes, which worked
in the datagrid I had bound the objects to- this method is used by
databinding, but not by reporting. THe GetProperties(attributes) method
is what the reporting uses, so I overrode that method also to merely
point to my overridden GetProperties() method, in which I define all
the properties in the column order I want. Pardon the odd phrasing of
this article, I'm trying to hit some keywords I looked for.
 
Back
Top