DataSource in form of Object

T

Tony Johansson

Hello!

In the Data Source Configuration Wizard I can choose Object as a Data
source.
It feel much more natural to have Database as the Data source.

I feel very uncertain about having Object as the DataSource.
Can somebody give me an good example when to use Object as the data source
or
a good page where I can read about that.


//Tony
 
P

Peter Morris

You might not be doing DB work. One example of this is that I have a
reusable GUI which I use for selecting multiple items in a list

public class SelectMultipleObjects
{
public string Description { get; set; }
public List<SelectMultipleObjectsRow> Rows { get; set; }

public SelectMultipleObjects()
{
Rows = new List<SelectMultipleObjectsRow>();
}
}

public class SelectMultipleObjectsRow
{
public object Item { get; set; }
public string ItemName { get; set; }
public bool Selected { get; set; }
}



Pete
 

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

Top