Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit Datagrid doesn't behave for Arrow Down key
2 replies. Latest Post by micmit on September 7, 2009.
(0)
micmit
Member
44 points
45 Posts
09-07-2009 12:23 AM |
Simplistic datagrid is one of the views of SL3 Navigation project.
XAML
<datagrid:DataGrid x:Name="dataHitList"> </datagrid:DataGrid>
...
Code
InitializeComponent(); dataHitList.ItemsSource = "H e l l o W o r l d !".Split();
When move down with Arrow Down key we get stuck at row 3 ( first 'l' ) no movement to row 4 , if going Arrow Up from the very bottom , we jump from 'd' to 'l' which we got stuck before. Any explanation of this weird behaviour ?
yifung
Contributor
3313 points
540 Posts
09-07-2009 3:47 PM |
It looks like there's a selection issue with primitives. If you create actual classes that have a character property, you'll get the same display, but you'll no longer be using primitives so this will work as expected.
09-07-2009 11:45 PM |
No problem to change it. Just wondering could it be considered as a bug. I seem to have picked up the example of assigning ItemSource from string array in one of Silverlight books.