WPF how to fill combobox in data grid
Posted
by Rizwan Ullah
on Stack Overflow
See other posts from Stack Overflow
or by Rizwan Ullah
Published on 2010-04-08T09:35:06Z
Indexed on
2010/04/08
10:03 UTC
Read the original article
Hit count: 284
public class DA_ActivityType { public int Id { get; set; } public string Name { get; set; } }
public static List GetActivitytypes() { DataContext dbo = new DataContext(); IEnumerable activityTypes = from actType in dbo.ActivityTypes
select new DA_ActivityType
{
Id = actType.TypeId,
Name = actType.Name
};
return activityTypes.ToList();
}
//XAML Code
© Stack Overflow or respective owner