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

GridGroupingControl Cell Tooltips

Thread ID:

Created:

Updated:

Platform:

Replies:

21548 Nov 14,2004 01:57 PM Nov 15,2004 03:01 PM Windows Forms 2
loading
Tags: Grouping
David Llewellyn
Asked On November 14, 2004 01:57 PM

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 05:25 PM

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 03:01 PM

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

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.

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.

;