<UserControl x:Class="RadGridView_SL4_AR_25.MainPage"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
			 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
			 xmlns:my="clr-namespace:RadGridView_SL4_AR_25"
			 xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"
			 mc:Ignorable="d" d:DesignHeight="700" d:DesignWidth="700">
	<UserControl.Resources>
		<my:MyViewModel x:Key="MyViewModel"/>		
	</UserControl.Resources>
	
	
	<Grid x:Name="LayoutRoot" 
		  Background="White" 
		  DataContext="{StaticResource MyViewModel}">
		<Grid.RowDefinitions>
			<RowDefinition Height="*"/>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
				

		<telerik:RadGridView Grid.Row="0"
			ItemsSource="{Binding GridItems, Mode=OneWay}" 
			AutoGenerateColumns="False">

			<telerik:RadGridView.Columns>
				<telerik:GridViewDataColumn DataMemberBinding="{Binding Days[0]}" Header="Day1"
											UniqueName="Days1" />

				<telerik:GridViewDataColumn DataMemberBinding="{Binding Days[1]}" Header="Day2"
					                        UniqueName="Days2" />
				<telerik:GridViewDataColumn DataMemberBinding="{Binding Days[2]}" Header="Day3"
											UniqueName="Days3" />

				<telerik:GridViewDataColumn DataMemberBinding="{Binding Days[3]}" Header="Day4"
					                        UniqueName="Days4" />

				<telerik:GridViewDataColumn DataMemberBinding="{Binding Days[4]}" Header="Day5"
											UniqueName="Days5" />
				
			</telerik:RadGridView.Columns>
		</telerik:RadGridView>
		
		
		
		<StackPanel Grid.Row="2" Orientation="Horizontal">
					<Button Name="Button1"
							Content="Do Something 1" 
							Click="Button1_Click"
							Margin="5"
							HorizontalAlignment="Left"/>
					<Button Name="Button2"
							Content="Do Something 2" 
							Click="Button2_Click"
							Margin="5"
							HorizontalAlignment="Left"/>
				</StackPanel>
			
				
			
	</Grid>
</UserControl>
