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.

Removing sort triangle icon from GroupDropArea columns buttons.

Thread ID:

Created:

Updated:

Platform:

Replies:

58193 Mar 20,2007 11:53 AM Mar 20,2007 02:30 PM Windows Forms 2
loading
Tags: GridControl
Brian Schlatter
Asked On March 20, 2007 11:53 AM

Hi,

I have a GridGroupingControl where I am allowing users to drag drop columns to the GroupDropArea. When these column get place in the GroupDropArea they get represented as what look like a button. This button displays the column name as well as a sort triangle icon. Is it at all possible to hide or remove the sort triangle icon in any way?

Regards,
Brian

Syncfusion Version: 4.4.0.51

Administrator [Syncfusion]
Replied On March 20, 2007 12:48 PM

Hi Brian,

One way you can do this by handling the PrepareViewStyleInfo event of the GridGroupDropArea and set the e.Style.CellType to "Header" for the ColumnHeaderCell. Here is a sample code snippet to show this.

this.gridGroupingControl1.GridGroupDropArea.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(GridGroupDropArea_PrepareViewStyleInfo);

void GridGroupDropArea_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
if (e.Style.CellType == "ColumnHeaderCell")
e.Style.CellType = "Header";
}

Best regards,
Haneef

Brian Schlatter
Replied On March 20, 2007 02:30 PM

Thanks Haneef, that did it.

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.

;