Unwanted white lines

Posted by: relson on 8 September 2017, 1:14 pm EST

  • Posted 8 September 2017, 1:14 pm EST

    In attached file UnitSettingsFill.png there are 2 unwanted white lines.  To the right of the spreadhsheet control is a thick vertical line that runs the full height of the spreadshee.  Hanging off the lower left corner of the spreadsheet is a short, vertical white line.  The relevant bit of the code for creating this image is

    grid = new PropertyGridControl();
    panel.Controls.Add(grid);
    grid.Dock = DockStyle.Fill;

    File UnitSettings.png was created without a grid.Dock specification.   Since it also has the unwanted white lines, I assume the lines are controlled by the style/painting/... of the spreadsheet.  What need I change in my code to make the lines go away?

    Thanks.

    David
                  

    2008/05/UnitSettings.PNG
  • Replied 8 September 2017, 1:14 pm EST

    David,


    It looks like you have the spreadsheet control's BorderStyle property set to Fixed3D (which is the default setting).  The FpSpread class inherits the BorderStyle property from the Control class.  When BorderStyle = Fixed3D, the Control class draws a 3D border around the outside of the control.  You can set BorderStyle = None to remove the 3D border.


        fpSpread1.BorderStyle = BorderStyle.None;

  • Replied 8 September 2017, 1:14 pm EST

    Bobby,

    BorderStyle doesn't seem to be what's wrong.  The default (inherited?) value in my app is BorderStyle.None.  I've tried all 3 border styles (None, FixedSingle, and Fixed3D) and, sad to say, the appearance remains the same.

    Any additional thoughts?

    David
  • Replied 8 September 2017, 1:14 pm EST

    I don't know if this helps, but it looks to me like it might have something to do with reserved space for vertical and horizontal scroll bars. Is there a setting something along the lines of VerticalScrollBar.Never and HorizontalScrollBar.Never that may apply here?
  • Replied 8 September 2017, 1:14 pm EST

    Hello,


    To me this looks like the border of the Panel control and not the Spread. If this is not the issue, could you post a small zipped project reproducing the issue for us to debug?

  • Replied 8 September 2017, 1:14 pm EST

    Since the right-side white line is the same distance from the grid, it would seem to be associated with the grid, rather than the panel.  I'll see if I can create a small project that demonstrates the problem, though I won't be able to do that until Monday.

    Regards,

    David
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels