We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Styling a ComboBox column

Hello,

I have a custom style that I'm applying to all ComboBoxes in my WPF application. I have a ComboBox column in my GridDataControl, the code I use for this column is:

                                <sync:GridDataVisibleColumn HeaderText="Acreage Type"
MappingName="AcreageType"
IsReadOnly="{Binding ReadOnly}">
<sync:GridDataVisibleColumn.ColumnStyle>
<sync:GridDataColumnStyle CellType="ComboBox"
 DropDownStyle="Exclusive"
 x:Name="AcreageColumnDataStyle"
 DisplayMember="Name"/>
</sync:GridDataVisibleColumn.ColumnStyle>
</sync:GridDataVisibleColumn>

But the style that I'm applying to all ComboBoxes is not being applied to this column's combobox, the ComboBox that appears is not even the regular unstyled ComboBox. I tried something similar with a Checkbox column and the style for the checkbox was successfully applied.

Does anybody know how I can get my styled ComboBox to be used in this column?

Any help is appreciated. Thanks.

James


1 Reply

AN Ashok N Syncfusion Team May 23, 2014 02:18 PM UTC

Hi James,

Thanks for using Syncfusion products.

For the combo box column we are using the GridCellComboBoxDropDown control. If you want edit the style of that column, then edit the style of the GridCellComboBoxDropDown control. Please find the default style of the GridCellComboBoxDropDown control in the below link.

Link: http://www.syncfusion.com/downloads/support/directtrac/124597/Appxaml884456566.zip

 

Please let us know if you have any queries.
Thanks,
Ashok


Loader.
Live Chat Icon For mobile
Up arrow icon