Hello,
I am using the ComboBoxColumn in the XamGrid, but I don't want the control to render as a combobox rather I want it to look like a normal text field. How can this be done?
Here is a sample code for a style:
<Style x:Key="ComboBoxStyle" TargetType="ComboBox"> <Setter Property="BorderThickness" Value="5" /> <Setter Property="Background" Value="Blue" /> </Style>
the style TargetType should be ComboBox i should had to point this out in the previous post.
and here is how it is set to the column:
<igGrid:ComboBoxColumn Key="IntegerData" ItemsSource="{StaticResource intOptions}" DisplayMemberPath="Name" SelectedValuePath="Id" EditorStyle="{StaticResource ComboBoxStyle}"/>
Hope this helps,
Do you have sample code as I am not able to get it to work?
Hi,
you could use the EditorStyle property of the ComboBoxColumn to apply style on the ComboBox and style it as you want.