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

Tooltip-Value at ComboBoxColumn

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?




3 Replies

AA Arulraj A Syncfusion Team 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) 
    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. 


Arulraj A  

BK Bernhard Korn February 8, 2019 12:12 PM UTC

Thanks, that works fine!!!

JP Jagadeesan Pichaimuthu Syncfusion Team 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. 


Live Chat Icon For mobile
Up arrow icon