Home Forums WPF controls Xceed DataGrid for WPF ComboBox oddity

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24599 |

    When using Microsoft’s Control (System.Windows.Controls.ComboBox) with the grid, I’m seeing some weird behavior.

    If the cell containing the ComboBox is currently selected, clicking on the ComboBox does not bring down it’s list of items. Clicking on the same ComboBox when another cell is selected does bring down the list.

    Is this by design? And if it is, are there any workarounds?

    The offending column looks like this:

    <xcdg:Column Width=”250″ FieldName=”Description” DisplayMemberBinding=”{Binding XPath=Description}” Title=”Description”>
    <xcdg:Column.CellContentTemplate >
    <DataTemplate>
    <StackPanel>
    <ComboBox>
    <ComboBoxItem>Item1</ComboBoxItem>
    <ComboBoxItem>Item2</ComboBoxItem>
    <ComboBoxItem>Item3</ComboBoxItem>
    </ComboBox>
    </StackPanel>
    </DataTemplate>
    </xcdg:Column.CellContentTemplate>
    </xcdg:Column>

    Imported from legacy forums. Posted by Matt (had 419 views)

    User (Old forums)
    Member
    Post count: 23064

    To resolve this, set grid.NavigationBehavior = NavigationBehavior.None

    Imported from legacy forums. Posted by vbv1 (had 269 views)

    User (Old forums)
    Member
    Post count: 23064

    Worked like a charm, thanks!

    Imported from legacy forums. Posted by Matt (had 3094 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.