or
<
telerik:RadGridView
ItemsSource
=
"{Binding}"
/>
public class Junk
{
public int Prop0 { get; set; }
public int Prop1 { get; set; }
public int Prop2 { get; set; }
public int Prop3 { get; set; }
public int Prop4 { get; set; }
public int Prop5 { get; set; }
public int Prop6 { get; set; }
public int Prop7 { get; set; }
public int Prop8 { get; set; }
public int Prop9 { get; set; }
public int Prop10 { get; set; }
public int Prop11 { get; set; }
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
Random random = new Random();
List<
Junk
> list = new List<
Junk
>();
for (int index = 0; index < 50000; ++index)
{
list.Add(new Junk()
{
Prop0 = random.Next(),
Prop1 = random.Next(),
Prop2 = random.Next(),
Prop3 = random.Next(),
Prop4 = random.Next(),
Prop5 = random.Next(),
Prop6 = random.Next(),
Prop7 = random.Next(),
Prop8 = random.Next(),
Prop9 = random.Next(),
Prop10 = random.Next(),
Prop11 = random.Next(),
});
}
DataContext = list;
}
public class DummyObj
{
public int ID { get; set; }
public int Col1 { get; set; }
public int Col2 { get; set; }
public int Col3 { get; set; }
public int Col4 { get; set; }
public int Col5 { get; set; }
}
xmlns:bn="clr-namespace:BindingNavigator;assembly=BindingNavigator"
<
bn:BindingNavigator
Grid.Row
=
"0"
Margin
=
"2"
Background
=
"Wheat"
x:Name="navigator"
ItemsSource="{Binding
People}"
AddNewItemCommand="{Binding
AddNewPersonCommand}"
DeleteItemCommand="{Binding
DeletePersonCommand}"
SaveCommand="{Binding
SaveCommand}"
/>