column and row headers


Is there a way to check inside of the databoundgrid.doubleclick event whether the user clicked on a columnheader?

Also, is there a way to programmatically refresh the row headers at runtime? Thanks!

1 Reply

HA haneefm Syncfusion Team July 11, 2007 05:55 PM UTC

Hi Code12345,

is there a way to programmatically refresh the row headers at runtime?
>>>>>>>>>>>>>>>>>>>>>>>>>>>
Yes, you can use the refresh range method.

this.grid.RefreshRange(GridRangeInfo.Col(0));

Is there a way to check inside of the databoundgrid.doubleclick event whether the user clicked on a columnheader?
>>>>>>>>>>>>>>>>>>>>>>>>>>>
You can handle the CellDoubleClick event to detect the mouse double click in a grid cell. Below is a code snippet

this.gridDataBoundGrid1.CellDoubleClick +=new GridCellClickEventHandler(gridDataBoundGrid1_CellDoubleClick);

private void gridDataBoundGrid1_CellDoubleClick(object sender, GridCellClickEventArgs e)
{
Console.WriteLine("dowble Clicked");
}
Best regards,
Haneef

Loader.
Up arrow icon