tempList = new ObservableCollection<ObservableCollection<Class1>> { new ObservableCollection<Class1> { new Class1("vince"), new Class1("elizabeth"), new Class1("brian"), new Class1("mark") }, new ObservableCollection<Class1> { new Class1("vince2"), new Class1("elizabeth2"), new Class1("brian2"), new Class1("mark2") },new ObservableCollection<Class1> { new Class1("vince3"), new Class1("elizabeth3"), new Class1("brian3"), new Class1("mark3") }, new ObservableCollection<Class1> { new Class1("vince4"), new Class1("elizabeth3"), new Class1("brian3"), new Class1("mark4") },};
gridView = new GridView();
for (int i = 0; i < tempList[0].Count; i++) { gridView.Columns.Add(new GridViewColumn { Header = i, DisplayMemberBinding = new Binding("[" + i + "].Value") }); }
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.