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 for Grid Cell when ellipsis text is shown

Hi, is there any way to show tooltip when there is ellipses text in GridControl. I have set the GridBaseStyle Trimming property to “EllipsisCharacter”. Please guide me how can I enable tooltip option. I will be thankful to you.

Regards,




1 Reply

HA haneefm Syncfusion Team December 5, 2007 03:36 PM UTC

Hi Ali,

You can set the Style.CellTipText for the particular column to show the tooltip in a grid. You can do this in QueryCellInfo.

private void grid_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if(e.RowIndex > 0 && e.ColIndex == 3)
{
e.Style.CellTipText = e.Style.FormattedText;
//maybe .Text or some other string...
}
}

Best regards,
Haneef


Loader.
Live Chat Icon For mobile
Up arrow icon