Problem with Business Object

A

Aryan

Hi,
I am implementing Business object, but while implementing this I
want to have DataTable or DataSet as part of Business Object. For
example, I want to bind controls directly to these Business Objects. So
please suggest me how can I achieve this??

Is is good to create a Property in Business Object which will have
return type as "DataTable / DataSet"?? or what could be the optimum way
to achieve the same.

Thanks & Regards,
Manoj Singh
 
M

Mark

Hi Monoj,

You do not need, nor should you expose a dataset/datatable as part of
the your business object. You don't need a Datatable to do binding.
You can bind directly to your business object or your business
collection with full support in Visual Studio 2005.

Mark
 
A

Aryan

Hi,
Thanks for your help, I dont want to use any third party control for
the same. DataTable returned by DataAccess Layer by executing Stored
proc, So is there any way by which I can create Custom classes to
handle the datatable feature.

Thanks Again,
Manoj Singh
 

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

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top