Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8193991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:40:11+00:00 2026-06-07T04:40:11+00:00

I have a DataGrid in a Silverlight control which contains custom controls. These custom

  • 0

I have a DataGrid in a Silverlight control which contains custom controls. These custom controls are used outside the grid too and work perfectly. When used within the grid however, they appear to reset themselves when focus is lost (i.e. we move to another cell).

To test that it wasn’t my custom control, I added a column containing an AutoComplete box. When typing into the box and tabbing to the next column the box is cleared.

When debugging I can see that the controls loaded event is called after we lost focus from it, which confirms that it’s being reloaded/recreated when moving to the next field!? Is it simply not committing the change to the grid for some reason?

e.g. of XAML (very basic, nothing weird here)

        <sdk:DataGridTemplateColumn Header="Description">
             <sdk:DataGridTemplateColumn.CellTemplate>
                    <DataTemplate>
                            <sdk:AutoCompleteBox Name="Description" Width="100" />
                        </DataTemplate>
                    </sdk:DataGridTemplateColumn.CellTemplate>
                </sdk:DataGridTemplateColumn>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:40:13+00:00Added an answer on June 7, 2026 at 4:40 am

    This is perfectly normal – the CellTemplate is used when the cell is rendered, and they get destroyed when the row is scrolled out of view if you have virtualisation turned on.

    The CellEditingTemplate is used when the grid cell goes into editing mode, at this point your editing control will get created – IOW the editing control is created on demand. Just focussing on the cell is not sufficient to put the cell into edit mode by itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Silverlight DataGrid that contains a single template column which displays a
I have 2 silverlight controls on a form; datagrid which is bound to list
I have a Silverlight 3 tools library with a custom DataGrid user control. This
We have custom headers in the Silverlight DataGrid using the ContentTemplate. We've got a
I have followed this tutorial which allowed me to create a Silverlight DataGrid that
I'm using the Silverlight 3 datagrid and have a number of custom styles applied
I have a Silverlight 2.0 DataGrid that contains a list of items that needs
I have a Silverlight app with a DataGrid containing some custom columns and all
I have a simple Silverlight app which simply sets a DataGrid's ItemsSource to the
I have a Silverlight 4 DataGrid which has its ItemsSource bound to an ObservableCollection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.