473,654 Members | 3,129 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom TypeDescriptor, TypeDescription Provider 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
TypeDescription Provider 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(a ttributes) 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 3799
Hi,

Do you have a question?

--
Dave Sexton

<an**********@y ahoo.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.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
TypeDescription Provider 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(a ttributes) 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
2186
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 CustomObject. How would I do this? Thanks in advance. Public Class CustomCollection Inherits Hashtable ' default constructor
3
2880
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 for other organizations to manage their own events. The events include conferences, corp meetings, sales meetings, etc... An event planner will define what information is needed for an attendee to register for an event. We will be providing a...
38
3718
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 objects and how to implement them with c#? I would appreciate any help. Thanks.
3
1759
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 "State.StateCode". How can I reflect upon the Address object so as to echo the value contained in the string variable. Something like:- Dim add as new Address add.State.StateCode = "TX" Dim str as string = "State.StateCode"
8
3148
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
18111
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 ListView columns so it should be doable, thanks
2
8224
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 attribute was invalid." Here is a stack trace of the error: at System.Reflection.CustomAttribute._CreateCaObject(Void* pModule, Void* pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at...
1
1897
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 System.ComponentModel.PropertyDescriptorCollection
3
1924
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 easy, using my objects. But, it's seem that I cannot create report using Crystal Report with my objects. I created classes in the app_Code folder and yes, I can use them but, it's not the way I eant to do it. I want to use my classes from my dlls.
0
8372
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8706
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8475
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8591
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6160
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5621
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4293
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2709
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 we have to send another system
2
1592
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.