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. Image for the cookie policy date

GridGroupingControl HighLightCurrentHeader

Hi, Is there anything in the GridGroupingControl which would highlight the current column header when a cell in that colum is clicked or being changed. Regards Dev.

1 Reply

AD Administrator Syncfusion Team October 1, 2004 01:43 PM

Hi Dev, There are two options: a) You could handle the TableControlCellClick event, get the column name of the field you clicked in and then the get the row and column index of the header using ColumnToRowColIndex. If a caption is shown at the top increase the row index by one. With that row and column index call InvalidateRange(GridRangeInfo.cell(rowIndex, colINdex)); Then you also override TableControlPrepareViewStyleInfo and there you can change the appearance of the header at runtime. b) You could also simply set column.Appearance.ColumnHeaderCell.BackColor = Color.WhatEver; in TableControlCellClick. However that might force the whole grid to repaint. Stefan

Loader.
Live Chat Icon For mobile
Up arrow icon