Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
16319 | Jul 12,2004 06:30 PM UTC | Jul 13,2004 11:35 AM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
Private Sub gridControl1_Paint(ByVal sender As Object, ByVal e As PaintEventArgs) Handles gridControl1.Paint Dim range As GridRangeInfo = GridRangeInfo.Cells(11, 2, 11, 5) Dim rect As Rectangle = Me.gridControl1.RangeInfoToRectangle(range) If rect.IntersectsWith(e.ClipRectangle) Then Dim br As New System.Drawing.Drawing2D.LinearGradientBrush(rect, Color.FromArgb(200, Color.Black), Color.FromArgb(100, Color.White), Drawing2D.LinearGradientMode.Horizontal) e.Graphics.FillRectangle(br, rect) br.Dispose() End If End Sub
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.
This page will automatically be redirected to the sign-in page in 10 seconds.