Hi Miguel,
I think it is not so hard. each element of data in your datasource (which should consist of one or more rows of data) should expose the list of combobox entries, like:
class Student
{
private List<string> _grades = new List<string>() { "10", "20", "30", "40" }
public string Name { get; set; }
public List<string> Grades
{
get { return _grades; }
}
}
In your initialization code, you can bind a list of persons to your grid:
List<Student> students = new List<Student>()
{
new Student() { Name="Peter Petersen" },
new Student() { Name="Arthur Arthurson" }
};
MyDataGrid.ItemsSource = students;
In your XAML, you can then use Grades as the binding for the ComboBox data.
Hope this will help you.
Regards, Perry