Grouped Cols In GridGroupDropArea

Syncfusion 6.1
VS 2005

I have dragged a few cols into the group drop area, resulting in the grid being grouped by those cols. When I click on the buttons in the grop drop area the groups get sorted asc/desc.
I would like to add some custom processing when the user clicks the col button in the group drop area.
How do I capture this click event?

Thanks


1 Reply

SR Sri Rajan Syncfusion Team July 23, 2008 01:55 PM UTC

Hi Shek,

Thank you for your interest in Syncfusion products.

Here is the code to handle user clicks on column button in the group drop area.


this.gridGroupingControl1.GridGroupDropArea.CellClick += new GridCellClickEventHandler(GridGroupDropArea_CellClick);
void GridGroupDropArea_CellClick(object sender, GridCellClickEventArgs e)
{
if (this.gridGroupingControl1.GridGroupDropArea.Model[e.RowIndex, e.ColIndex].CellType == "ColumnHeaderCell")
{
Console.WriteLine("Button Clicked");
}
}


Please try this and let me know if this helps.

Best Regards,
Srirajan.


Loader.
Up arrow icon