473,320 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to Make Classes Data-Aware, Is it Possible?

Hi anyone. I want to make a class data-aware so i can just set my grid's
datasource property to my object. i have an object with a list of other
objects and at the moment i'm using serialization to convert my object to xml
and then a dataset, i want to use a Datatable but i keep on getting
"datatable does not support schema inference" error.

If not possible can you perhaps tell me if there is an easier, faster and
more effective way of getting an object to behave like a datasource,m
example: Object->XML->DataTable/DataSource->XML->Object

Thank you very much
Regards
Aug 11 '06 #1
1 1524
..Net 1.0, 1.1
look into implementing the ITypedList or the IBindingList interfaces

..Net 2.0
You can also use generics...
List<MyObject>

The public properties are those made visible to grid

Tigger

Desmond wrote:
Hi anyone. I want to make a class data-aware so i can just set my grid's
datasource property to my object. i have an object with a list of other
objects and at the moment i'm using serialization to convert my object to xml
and then a dataset, i want to use a Datatable but i keep on getting
"datatable does not support schema inference" error.

If not possible can you perhaps tell me if there is an easier, faster and
more effective way of getting an object to behave like a datasource,m
example: Object->XML->DataTable/DataSource->XML->Object

Thank you very much
Regards
Aug 13 '06 #2

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

Similar topics

2
by: | last post by:
I have this class ------------- class Component { /*class*/ Data *d; /*class*/ Draw *a; }; ------------- from "Component" derive classes like "TextBox", "Button", "Label", "ComboBox" etc from...
5
by: Simon | last post by:
Hi all, I'm hoping that someone could help with the following general question: I'm making a website that manages beta releases of software. It does various things like store bugs, comments,...
12
by: Steven T. Hatton | last post by:
This is something I've been looking at because it is central to a currently broken part of the KDevelop new application wizard. I'm not complaining about it being broken, It's a CVS images. ...
0
by: Chris F Clark | last post by:
In our C++ project we have some internal bug reporting macros that we use to get useful information when the program does something unexpected. Essentially at the point of the error, we invoke an...
2
by: RD | last post by:
My application contains several Classes & Forms . From the Login form I will get the User ID and Password for the SqlConnection. I established the connection through another class and...
3
by: Ron L | last post by:
I have an existing ASP/ MSSQL project that we are looking at migrating to VB.Net (standalone app, not ASP) which will still interact with a single central SQL server. Because we have a requirement...
2
by: Burak | last post by:
Hello, I have a web service that has a two user defined public classes. For sake of brevity, I'll write them as follows Public Class Service1 Public Class Class1 Public x as integer End...
4
by: Chris F Clark | last post by:
Please excuse the length of this post, I am unfortunately long-winded, and don't know how to make my postings more brief. I have a C++ class library (and application generator, called Yacc++(r)...
2
by: inquiringMind | last post by:
My academic background is a Master's In Chemistry, and course work in - Undergraduate level classes of Intro C++, Java, Data Structure, Web development using HTML, JavaScript, Perl, JSP...
2
Pittaman
by: Pittaman | last post by:
Hello, Sorry about the title, I had a hard time explaining this. I've done a little trick to solve a problem I was having with this third party control, and was wondering if anyone here could...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.