Hello Igor
First of all, in these difficult times, I wish you to see happier days soon.
Well, I'm going to show you a problem that I can't solve.
I want to draw a horizontal line to separate 2 parts of the grid
I use the following method:
Private Sub G1_CustomDrawCellBackground(sender As Object, e As iGCustomDrawCellEventArgs) Handles G1.CustomDrawCellBackground
dim BCB = New SolidBrush(Color.Red)
e.Graphics.FillRectangle(BCB, e.Bounds.X, e.Bounds.Y, e.Bounds.Width, 3)
End Sub
I call this method as follows:
For i as integer = 0 To grid1.Cols.Count - 1
Grid1.Cells(20, i).CustomDrawFlags = iGCustomDrawFlags.Background
Next
it works well but the color of the concerned cells (Backcolor) always takes the background color of the grid and the background color of the cells that I had defined before is lost
Is there a way to keep the predefined color ?
Thanks you and I think of you
Stephane