The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
ADAdministrator Syncfusion Team October 1, 2004 05:43 PM UTC
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