Search

Silverlight Fourm: Double clicking empty data templates froze the cell by CSSForumEngineer

Active

1
0
Sign in
to vote
Type: Bug
ID: 652534
Opened: 3/21/2011 2:38:15 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
There is a empty data template in DataGrid:
Whenever a column has been double clicked that contains an empty data template, the cell becomes frozen and the focus cannot be moved to another cell.
Details (expand)

Visual Studio/Silverlight/Tooling version

Silverlight 4

What category (if any) best represents this feedback?

 

Steps to reproduce

1. Creata a new project.

2. Add the xaml Code in the MainPage.xaml:
<Grid x:Name="LayoutRoot" Background="White">
<sdk:DataGrid x:Name="MyDg">
<sdk:DataGrid.Columns>
<sdk:DataGridTemplateColumn>
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBox Text="This can be double clicked" />
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
<sdk:DataGridTemplateColumn>
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
</sdk:DataGrid.Columns>
</sdk:DataGrid>
</Grid>

3. In Code Behind:
public MainPage()
{
InitializeComponent();
MyDg.ItemsSource = new List<string>
{
"aaa",
"bbb",
"ccc",
"bbb",
"ccc",
"bbb",
"ccc"
};
}

4. Run the project.

5. Double click into the row with no data template.

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

The cell becomes frozen and the focus cannot be moved to another cell.

Expected results

The cell doesn't become frozen and the focus can be moved to another cell.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 3/21/2011 at 3:13 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.