Infragistics(R) NetAdvantage(R) Windows Forms
HotTrackHeaderAppearance Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGridOverride Class : HotTrackHeaderAppearance Property

Determines the formatting attributes that will be applied to the header that's currently hot-tracked.

Syntax

Visual Basic (Declaration) 
Public Property HotTrackHeaderAppearance As Infragistics.Win.AppearanceBase
C# 
public Infragistics.Win.AppearanceBase HotTrackHeaderAppearance {get; set;}

Example

The following code sets some of the hot tracking appearances along with the explanation of what each appearance does.

Visual BasicCopy Code
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid


    Private Sub UltraGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles ultraGrid1.InitializeLayout
        ' This will apply to the cell that's under the mouse.
        e.Layout.Override.HotTrackCellAppearance.BackColor = Color.Blue

        ' This will apply to all the cells of the row that's under the mouse.
        e.Layout.Override.HotTrackRowCellAppearance.BackColor = Color.Yellow

        ' This will apply to the header that's under the mouse.
        e.Layout.Override.HotTrackHeaderAppearance.BackColor = Color.Blue

        ' This will apply to the row that's under the mouse.
        e.Layout.Override.HotTrackRowAppearance.ForeColor = Color.DarkRed

        ' This will apply to the row selector of the row that's under the mouse.
        e.Layout.Override.HotTrackRowSelectorAppearance.ForeColor = Color.Green
    End Sub
C#Copy Code
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
		{
			// This will apply to the cell that's under the mouse.
			e.Layout.Override.HotTrackCellAppearance.BackColor = Color.Blue;

			// This will apply to all the cells of the row that's under the mouse.
			e.Layout.Override.HotTrackRowCellAppearance.BackColor = Color.Yellow;

			// This will apply to the header that's under the mouse.
			e.Layout.Override.HotTrackHeaderAppearance.BackColor = Color.Blue;

			// This will apply to the row that's under the mouse.
			e.Layout.Override.HotTrackRowAppearance.ForeColor = Color.DarkRed;

			// This will apply to the row selector of the row that's under the mouse.
			e.Layout.Override.HotTrackRowSelectorAppearance.ForeColor = Color.Green;
		}

See Also