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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Styling a ComboBox column

Thread ID:

Created:

Updated:

Platform:

Replies:

116401 May 19,2014 06:04 PM UTC May 23,2014 02:18 PM UTC WPF 1
loading
Tags: GridDataControl
James
Asked On May 19, 2014 06:04 PM UTC

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


Ashok N [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;