<Window x:Class="GridValidation.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
		<Telerik:RadGridView Name="DataGrid" Grid.Column="2" ItemsSource="{Binding Items}" AutoGenerateColumns="False" DataLoadMode="Asynchronous" EnableRowVirtualization="True"
					CanUserDeleteRows="{Binding IsEditMode}" CanUserInsertRows="{Binding IsEditMode}"
					IsLocalizationLanguageRespected="False" RowEditEnded="DataGrid_RowEditEnded">
			<Telerik:RadGridView.Columns>
				<Telerik:GridViewDataColumn Header="Id" DataMemberBinding="{Binding Id}"/>
				<Telerik:GridViewDataColumn Header="Code" DataMemberBinding="{Binding Code}"/>
				<Telerik:GridViewDataColumn Header="Text" DataMemberBinding="{Binding Text}"/>
			</Telerik:RadGridView.Columns>
		</Telerik:RadGridView>
	</Grid>
</Window>
