Hi , i have the following piece of code, that for some reason that i'm unaware of, doesn't populate the LINQ resultset to the listbox (and there are many results in this list), however, i bind it to the original datatable, it works well. any ideas:
DataTable t = _partitionsDataSet.Tables[0];
var customizedPartitions = from r in t.AsEnumerable()
select new
{
Name = string.Format("{0}[{1}]", r["Name"], r["UserName"]),
BlobId = r["BlobId"].ToString()
};
if (customizedPartitions.Count() > 0)
{
_dataView.Sort = "Name";
listBoxPartitions.DisplayMember = "Name";
listBoxPartitions.ValueMember = "BlobId";
listBoxPartitions.DataSource = customizedPartitions;
}