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

GridGroupingControl HighLightCurrentHeader

Thread ID:

Created:

Updated:

Platform:

Replies:

19715 Oct 1,2004 08:56 AM Oct 1,2004 01:43 PM Windows Forms 1
loading
Tags: GridControl
Devshi Halai
Asked On October 1, 2004 08:56 AM

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 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

CONFIRMATION

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.

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.

;