Tom
Tom

Reputation: 689

How can DataGridComboBoxColumn style be changed?

I need to change border style to invisible on "DataGridComboBoxColumn"... How can I do it? I hope there is another way then changing to datagridTemplate and put combobox element with my style inside....

Upvotes: 2

Views: 2067

Answers (2)

Tom
Tom

Reputation: 689

I needed to add .EditingElementStyle

<wpfToolkit:DataGridComboBoxColumn x:Name="dgcSource" Header="Source"
      SelectedValueBinding="{Binding ObjectItemSourceId, TargetNullValue=0}" 
      SelectedValuePath="ID"
      DisplayMemberPath="Name"
      SortMemberPath="SourceName">
    <wpfToolkit:DataGridComboBoxColumn.EditingElementStyle>
        <Style TargetType="ComboBox">
            <Setter Property="BorderBrush" Value="Transparent"/>
        </Style>
    </wpfToolkit:DataGridComboBoxColumn.EditingElementStyle>
</wpfToolkit:DataGridComboBoxColumn>

Upvotes: 0

Related Questions