Removing sort triangle icon from GroupDropArea columns buttons.

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

2 Replies

AD Administrator Syncfusion Team March 20, 2007 04:48 PM UTC

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


BS Brian Schlatter March 20, 2007 06:30 PM UTC

Thanks Haneef, that did it.

Loader.
Up arrow icon