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

  • Home
  • SEARCH
  • 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 7037121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:30:21+00:00 2026-05-28T01:30:21+00:00

I have a datagrid with a column of comboboxes defined like this: <DataGridTemplateColumn x:Name=AssortmentQualitySettingsDataGridColumn

  • 0

I have a datagrid with a column of comboboxes defined like this:

<DataGridTemplateColumn x:Name="AssortmentQualitySettingsDataGridColumn" Header="Kvaliteter">
<DataGridTemplateColumn.CellTemplate>
    <DataTemplate>
        <ComboBox ItemsSource="{Binding Path=QualityInfoAssortmentCollection}">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <CheckBox IsChecked="{Binding Path=ActiveQuality}"></CheckBox>
                        <TextBlock Text="{Binding Path=QualityName}" IsEnabled="False"></TextBlock>
                    </StackPanel>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
    </DataTemplate>
</DataGridTemplateColumn.CellTemplate>

The ItemsSource is an ObservableCollection of objects. The texts for the textbox in the combobox is however editable in another datagrid and put in another ObservableCollection called QualityItemCollection, and to get the comboboxes in the grid above updated I have an event on the datagrid that fires when that collection is changed. This even causes the QualityInfoAssortmentCollection to be re-read (the combobox needs to be set again also, so there is some looping to get it working).

Now, what happens is that the first time when data is loaded, everything is nice and dandy, however, when the event updating QualityInfoAssortmentCollection has fired the comboboxes above takes 5-7 seconds to drop down when trying to get into it. The refresh itself I have timed and it takes less than a tenth of a second to do. The combobox doesn’t have more than 8-10 rows and there no difference trying to use a virtualizingstackpanel as suggested elsewhere. The datagrid displaying it has around 10 rows so it’s not even close to any enormous amounts of data that needs to be shuffled.

Edit: More explanation about not being able to use the defining QualityItemCollection. The QualityItemColletion is the same for all items in the above datagrid, but the information about which checkboxes should be checked is set per item in the grid above. Therefore I make a copy of QualityItemCollection into QualityItemAssortmentCollection which also has a bool for the checkbox. There might be a better way to do this?

Edit 2:
Tried the WPF profiler now and it locks up just as the program does and doesn’t display anything during the time the program is doing strange things. However, it turns it’s something Visual Studio does, since if I run the program alone and not through Visual Studio there is no delay. Yay.

  • 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-05-28T01:30:22+00:00Added an answer on May 28, 2026 at 1:30 am

    Problem was with the VS debugger. It for some reason makes the combobox excruciatingly slow.

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

Sidebar

Related Questions

I have a datagrid column that I am using an itemRenderer. Something like this
I have a datagrid called DataGridView1, column A contains a name, column B contains
I have a DataGrid in WPF app with several columns, including a Name column.
I have a DataGrid table with columns name , phone . In column name
I'm having a small problem. I have this grid with a column: <data:DataGrid ColumnHeaderStyle={StaticResource
I have a datagrid where one column calls a custom an itemEditor like; <mx:DataGridColumn
I have a mx:Datagrid in witch I'd like to add a combobox as item
I have a data grid that looks like this <tk:DataGrid ItemsSource={Binding Parents} AutoGenerateColumns=False> <tk:DataGrid.Columns>
I have datagrid in wpf. When I do mouse-over on column header, There is
I'd like to have a combobox in a datagrid to show a list of

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.