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

Combo box column on GridDataControl not displaying the correct Selected Value after Save

Thread ID:





119320 Jun 4,2015 03:45 PM UTC Jun 10,2015 03:38 AM UTC WPF 3
Tags: GridDataControl
Ari Case
Asked On June 4, 2015 03:45 PM UTC

I have a combo box column on my GridDataControl that doesn't always display the correct selected value after I save.

Let's say my combo box has 3 options, Red, Green, Yellow. If I select Yellow and save it, the data saves correctly but the combo box will display Red for some reason.

Or I could selected Green, save it, and then after the save the combo box displays Yellow.

I'm confused on how to pinpoint this as I don't know what event or action is triggering this, this is the code behind this specific column:

 <syncfusion:GridDataVisibleColumn x:Name="cbxColor" HeaderText="Colors" MappingName="color_template" ShowColumnOptions="False" ShowSortOptioninExcelLikeFiltering="False" AutoFit="True" Width="80">
                        <syncfusion:GridDataFilterBarStyle CellType="ComboBox" />
                        <syncfusion:GridDataColumnStyle CommentAlignment="TopRight" CommentBrush="Red" ImageContentAlignment="Left" ImageContentStretch="Fill" ImageHeight="*" ImageIndex="-1" ImageWidth="0.2*" IsMouseTrackingEnabled="True" IsThemed="True" CellTypeEnum="ComboBox" Enabled="True" DropDownStyle="Exclusive" TextWrapping="Wrap">
                                <syncfusion:GridDropdownEditStyleInfo ShowButton="False" />
                                <syncfusion:GridDoubleEditStyleInfo NullValue="{x:Null}" />
                                <syncfusion:GridCommentStyleInfo />
                                <syncfusion:CellMarginsInfo />
                                <syncfusion:GridIntegerEditStyleInfo NullValue="{x:Null}" UseNullOption="False" />
                                <syncfusion:GridMaskEditInfo />

Jayapradha S [Syncfusion]
Replied On June 8, 2015 02:54 AM UTC

Hi Ari Case,

Thank you for using Syncfusion products.

We have analyzed your query with your shared code snippet. We are not able to understand your query clearly and we need more information on this. We thought that, you are performing the save action after changing the items in combo box. Could you please clarify are you using data serialization to perform save action? Please provide the details what are you trying to do in your save action? Could you please provide more details about your requirement. It would be helpful for us to proceed further.


Ari Case
Replied On June 9, 2015 04:59 PM UTC

I was able to resolve this. It wasn't actually a syncfusion issue but a data problem.

This can be closed, thanks.

Jayapradha S [Syncfusion]
Replied On June 10, 2015 03:38 AM UTC

Hi Ari case,

Thank you for your update.

Please let us know if you have any other queries.



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

This page will automatically be redirected to the 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