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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl Cell Tooltips

Thread ID:





21548 Nov 14,2004 06:57 PM UTC Nov 15,2004 08:01 PM UTC WinForms 2
Tags: Grouping
David Llewellyn
Asked On November 14, 2004 06:57 PM UTC

Hello, I am trying to set the cells (of a GridGroupingControl) tooltip in PrepareViewStyleInfo, to the same value that is displayed in that cell. Something like this :- private void TableControl_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { GridRecordRow rec = this.gridcontrol.Table.DisplayElements[e.RowIndex] as GridRecordRow; if(rec != null) { DataRowView colorrow = rec.GetData() as DataRowView; try { if ((e.ColIndex > 3) && (e.ColIndex < 7)) e.Style.CellTipText = colorrow[e.ColIndex].ToString(); } catch { } } } This method REALLY slows down the grouping grid. Do you know of a better way of setting the tooltips of the cells? Can this be done when the grid is being loaded, instead of setting the cell tooltips value at run-time? Thanks. David.

Administrator [Syncfusion]
Replied On November 14, 2004 10:25 PM UTC

There is no way to set the CellTipText to the Text except through an event, either TableControlPrepareViewStyleInfo or QueryCellStyleInfo. Try this code: private void gridGroupingControl1_TableControlPrepareViewStyleInfo(object sender, GridTableControlPrepareViewStyleInfoEventArgs e) { if ((e.Inner.ColIndex > 3) && (e.Inner.ColIndex < 7)) { e.Inner.Style.CellTipText = e.Inner.Style.Text; } }

David Llewellyn
Replied On November 15, 2004 08:01 PM UTC

Thanks Clay, That makes the program run much faster. Cheers.


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

Live Chat Icon For mobile
Live Chat Icon