Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142514 | Feb 7,2019 08:55 AM UTC | Feb 11,2019 06:56 AM UTC | WPF | 3 |
![]() |
Tags: GridDataControl |
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.
}
} |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.