Skip to main content

Microsoft Silverlight

Answered Question Datagrid doesn't behave for Arrow Down keyRSS Feed

(0)

micmit
micmit

Member

Member

44 points

45 Posts

Datagrid doesn't behave for Arrow Down key

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
yifung

Contributor

Contributor

3313 points

540 Posts

Microsoft
Answered Question

Re: Datagrid doesn't behave for Arrow Down key

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.

Yifung Lin [MSFT]

micmit
micmit

Member

Member

44 points

45 Posts

Re: Re: Datagrid doesn't behave for Arrow Down key

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities