Skip to content

Instantly share code, notes, and snippets.

@JohanLarsson
Created October 3, 2012 22:25
Show Gist options
  • Save JohanLarsson/3830277 to your computer and use it in GitHub Desktop.
Save JohanLarsson/3830277 to your computer and use it in GitHub Desktop.
namespace DataGridDummy
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
Names= new ObservableCollection<string>(new List<string>(){"Johan"});
this.DataContext = Names;
InitializeComponent();
}
public ObservableCollection<string> Names { get; set; }
}
public class Person
{
public string Name { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment