473,468 Members | 1,333 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Custom TypeDescriptor, TypeDescriptionProvider objects not showing up for SQL Reporting

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.

Oct 25 '06 #1
1 3788
Hi,

Do you have a question?

--
Dave Sexton

<an**********@yahoo.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
>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.

Oct 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: rufus | last post by:
Hi, I have a custom collection class that inherits from HashTable. When I add a new CustomObject to my CustomCollection I would like to ensure that it will only accept objects of type...
3
by: xAvailx | last post by:
I apologize ahead of time for the long post... Background: Working on a CRM type custom application. The application is for an event management company. The company will provide the application...
38
by: Radi Radichev | last post by:
Hi! I'm making a database application and i heard from a friend that it is more proffecional and easy to do this with bussines objects. Can anyone tell me where i can find more info on bussines...
3
by: | last post by:
Hi all, I have a question on reflection Lets say I have a custom object called Address. Now, lets say I have a string variable that holds the name of a variable in the object such as...
8
by: Ibrahim. | last post by:
Hello, I want to build a custom reporting engine in .NET. Wht are the consideration and I need to provide the user design facilty at run time. Thanks,
11
by: Pete Kane | last post by:
Hi All, does anyone know how to add TabPages of ones own classes at design time ? ideally when adding a new TabControl it would contain tab pages of my own classes, I know you can achieve this with...
2
by: Eric Renken | last post by:
I have a Windows .NET 2.0 application that has been working fine for last year, and now all of a sudden on one customers computer I am getting this error, "Binary format of the specified custom...
1
by: =?Utf-8?B?d2luZHNpbQ==?= | last post by:
Hi, I have a custom attribute targing Property: public class StatefulPropertyAttribute : Attribute{} and all the properties marked with will be handled by public...
3
by: =?Utf-8?B?R2hpc3Rvcw==?= | last post by:
Hi all, We have a N-Tier framework and we now create a Web Site App to wotk with this architecture. I add reference from my libraries in the project and creating page and controls is very...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.