I am having a few problems working out how to bind LiNQ data to a ComboBox.
Lets say I get my data e.g.
How exactly would I go about getting that IQueryable object into the right format in which to bind it to my ComboBox?
I tried casting it to a dataset, but that didnt work too well I imagine there's an easier way than iterating through the object and adding each item to a dataset?
Lets say I get my data e.g.
Code:
var intData = from p in feederData.Pickup_points
where p.Interchange == Interchange
select p;
How exactly would I go about getting that IQueryable object into the right format in which to bind it to my ComboBox?
I tried casting it to a dataset, but that didnt work too well I imagine there's an easier way than iterating through the object and adding each item to a dataset?