<Window x:Class="WpfApplication19.ChooseRecord2"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ChooseRecord2" Height="291" Width="517" Loaded="Window_Loaded">
    <Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="207*" />
			<RowDefinition Height="45*" />
		</Grid.RowDefinitions>
		<DataGrid  AutoGenerateColumns="False" Name="chooseGrid" CanUserAddRows="False">
			<DataGrid.Columns>
				<DataGridTextColumn Header="Lot No." Width="*" Binding="{Binding lotNo}" IsReadOnly="True" />
				<DataGridTextColumn Header="Code" Width="*" Binding="{Binding code}" IsReadOnly="True" />
				<DataGridTextColumn Header="Date"  Width="*" Binding="{Binding date}" IsReadOnly="True" />
				<DataGridTextColumn Header="Average" Width="*" Binding="{Binding avg}" IsReadOnly="True" />
			</DataGrid.Columns>
		</DataGrid>
		<Button Content="Select" Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="420,10,0,0" Name="selectBtn" VerticalAlignment="Top" Width="75" Click="selectBtn_Click" />
		<Button Content="Cancel" Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="329,10,0,0" Name="cancel" VerticalAlignment="Top" Width="75" Click="cancel_Click" />
	</Grid>
</Window>
