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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl HighLightCurrentHeader

Thread ID:





19715 Oct 1,2004 12:56 PM UTC Oct 1,2004 05:43 PM UTC WinForms 1
Tags: GridControl
Devshi Halai
Asked On October 1, 2004 12:56 PM UTC

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.

Administrator [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon