在c1flexgrid中绘制的线条,拖动横向滚动条时,超出控件范围绘制的线条就会串位,请问该如何解决呢?
- Private Sub Fg_OwnerDrawCell(sender As Object, e As OwnerDrawCellEventArgs) Handles Fg.OwnerDrawCell
- With Fg
- e.Graphics.DrawLine(Pens.Red, .Cols(5).Left, .Rows(1).Top, .Cols(5).Left, .Rows(.Rows.Count - 1).Bottom)
- e.Graphics.DrawLine(Pens.Red, .Cols(10).Left, .Rows(1).Top, .Cols(10).Left, .Rows(.Rows.Count - 1).Bottom)
- e.Graphics.DrawLine(Pens.Red, .Cols(15).Left, .Rows(1).Top, .Cols(15).Left, .Rows(.Rows.Count - 1).Bottom)
- e.Graphics.DrawLine(Pens.Red, .Cols(18).Left, .Rows(1).Top, .Cols(18).Left, .Rows(.Rows.Count - 1).Bottom)
-
- End With
- End Sub
复制代码
|