Test of datagrid control in WPF