ADAdministrator Syncfusion Team October 1, 2004 01:43 PM
There are two options:
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.