class design

  • Thread starter Thread starter Tommy
  • Start date Start date
T

Tommy

What is the best way to return a set of data to the display layer if you
don't want to return the reader or dataset and still want to be able to
display the data in a grid or listbox on a web form or windows form?

I'm trying to make this multitier where any display app could use the
objects in my library.

Thanks
 
One way is to use a web service, returning whatever object you want.

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
 
Tommy,

As an example, suppose the set of data is data about students. Each row of
the set represents an individual student.

You could convert the dataset to a collection (such as an ArrayList) of
student objects.

Grids, listboxes, etc work well with collections, just as they work well
with datasets.

Hope this helps,

Kerry Moorman
 

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

Back
Top