Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
21950 | Nov 29,2004 11:27 PM UTC | Nov 30,2004 08:00 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
public void OnDrawBorders(Graphics g, Rectangle rectItem, GridStyleInfo style) { // Draw Borders Color backColor = m_grid.GetBackColor(style.Interior.BackColor); GridBordersInfo borders = style.ReadOnlyBorders; TraceUtil.TraceCurrentMethodInfoIf(Switches.GridBorderPaint.TraceVerbose, m_grid.PaneDesc, rectItem, borders); GridBorderPaint.DrawRectangle(g, borders.Top, rectItem, backColor, GridBorderSide.Top, m_grid.PrintingMode); GridBorderPaint.DrawRectangle(g, borders.Bottom, rectItem, backColor, GridBorderSide.Bottom, m_grid.PrintingMode); if (this.isRightToLeft()) { GridBorderPaint.DrawRectangle(g, borders.Right, rectItem, backColor, GridBorderSide.Left, m_grid.PrintingMode); GridBorderPaint.DrawRectangle(g, borders.Left, rectItem, backColor, GridBorderSide.Right, m_grid.PrintingMode); } else { GridBorderPaint.DrawRectangle(g, borders.Left, rectItem, backColor, GridBorderSide.Left, m_grid.PrintingMode); GridBorderPaint.DrawRectangle(g, borders.Right, rectItem, backColor, GridBorderSide.Right, m_grid.PrintingMode); } }
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.