I have a baseclass that handles returning data from the relevant class/table.
I want to have some way of specifying the columns to display. Maybe have a public columns List that gets assigned with all column we want to display?
This is what I have but its not right.
public void SetupGrid<T>() where T : class, new()
{
var db = new MyApp.MyDB();
IRepository<T> repo = new SubSonicRepository<T>(db);
var s = repo.GetAll();
var x = from c in s select new { c.Columns //that match columns I specify };
}