design aspect for populating my DataGrid in 3-tier application

Pls,

1/ When we have a datagrid for ex. in our form and we don t want to put too much code behind the form. I guess, Normally, we access a business class clcBusiness. then clsBusiness access a datalayer clsData.

And let s say the datagrid is populated according to a textbox value that the user fills in.

How do I populate the datagrid of my form without puting too much code behind my form.

In order to do that, I guess I should call the business class, right. but what is the buisness class supposed to get as an input value and what s it supposed to return to me, a dataset or a whole datagrid object populated and ready to go.

Do I pass the datagrid of the form to the business class as a ByRef variable or do I pass it as a ByVal object.

How do I pass that value to the business class.

Does this make sense. how do I implement all that. I understand this is a design question. Thanks .

2/ Any documentation about this

thank you very mcuh

[1035 byte] By [R.Tutus] at [2007-12-23]
# 1
http://msdn.microsoft.com/practices/apptype/smartclient/

Have a look at Microsoft Patterns and Practices for Smart clients it might help.

They also have some application blocks that might make your life easier.

hths,

James

JamesKnowles at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 2
Great article. thanks
R.Tutus at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...