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

Tooltip-Value at ComboBoxColumn

Thread ID:

Created:

Updated:

Platform:

Replies:

142514 Feb 7,2019 08:55 AM UTC Feb 11,2019 06:56 AM UTC WPF 3
loading
Tags: GridDataControl
Bernhard Korn
Asked On February 7, 2019 09:03 AM UTC

the GridDataControl shows ValueMember-Value("UID") instead of  the DisplayMember-Value("Value") in the ToolTip in a GridDataColumnStyle with CellTypeEnum="ComboBox".
How can I achive, that the DisplayMember-Value will be shown?

                       
                       
                                     
                                    CellTypeEnum="ComboBox"
                                    DisplayMember="Value"

                                    ValueMember="UID"
                                    DropDownStyle="Exclusive">
                                    

                           
                            



Arulraj A [Syncfusion]
Replied On February 8, 2019 07:32 AM UTC

Hi Bernhard, 

Thanks for using Syncfusion product. 

You can achieve your desired behavior by setting the TooTip text as the display text using QueryCellInfo event. 

dataGrid.Model.QueryCellInfo += Model_QueryCellInfo; 
 
private void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) 
{ 
    var identity = ((GridDataStyleInfo) e.Style).CellIdentity; 
    if (identity?.Column == null) 
        return; 
    if (identity.TableCellType == GridDataTableCellType.RecordCell) 
    { 
        e.Style.ShowTooltip = true; // If we set true alone like this by default the tooltip will show the cell values. 
        if (e.Style.CellType == "ComboBox") 
            e.Style.ToolTip = e.Style.Text; // Set the tooltip value as Text so that Display Member's string will be shown in tooltip. 
    } 
} 

 

Regards,  
Arulraj A  


Bernhard Korn
Replied On February 8, 2019 12:12 PM UTC

Thanks, that works fine!!!

Jagadeesan Pichaimuthu [Syncfusion]
Replied On February 11, 2019 06:56 AM UTC

Hi Bernhard, 

Thanks for your update. 

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 

Regards, 
Jagadeesan

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

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

;