マウスホバーの背景色にグラデーションを設定するには、
CellStyle.MouseOverGradientEffectプロパティを使用します。
Dim GradientEffect1 As New GradientEffect()
GradientEffect1.Colors = New Color() {Color.Green, Color.Yellow}
GradientEffect1.Style = GradientStyle.Horizontal
GradientEffect1.Direction = GradientDirection.Side
GcMultiRow1.Rows(0).Cells(0).Style.MouseOverGradientEffect = GradientEffect1
GradientEffect gradientEffect1 = new GradientEffect();
gradientEffect1.Colors = new Color[] {Color.Green, Color.Yellow};
gradientEffect1.Style = GradientStyle.Horizontal;
gradientEffect1.Direction = GradientDirection.Side;
gcMultiRow1.Rows[0].Cells[0].Style.MouseOverGradientEffect = gradientEffect1;
マウスホバーのスタイルの背景色および背景グラデーションはセクション単位で設定できます。
Dim GradientEffect1 As New GradientEffect()
GradientEffect1.Colors = New Color() {Color.Green, Color.Yellow}
GradientEffect1.Style = GradientStyle.Horizontal
GradientEffect1.Direction = GradientDirection.Side
GcMultiRow1.Rows(0).MouseOverGradientEffect = GradientEffect1
GcMultiRow1.Rows(1).MouseOverBackColor = Color.Azure
GradientEffect gradientEffect1 = new GradientEffect();
gradientEffect1.Colors = new Color[] {Color.Green, Color.Yellow};
gradientEffect1.Style = GradientStyle.Horizontal;
gradientEffect1.Direction = GradientDirection.Side;
gcMultiRow1.Rows[0].MouseOverGradientEffect = gradientEffect1;
gcMultiRow1.Rows[1].MouseOverBackColor = Color.Azure;