Skip to main content
All docs
V26.1
  • TdxVisualRefinements.LightBorders Property

    Specifies if lightweight borders are displayed by all DevExpress controls that support them.

    Declaration

    class property LightBorders: Boolean read; write;

    Property Value

    Type Description
    Boolean
    False
    Default. Affected DevExpress controls display ordinary borders, including double borders where applicable.
    True
    Affected controls display lightweight one-pixel borders. Refer to the table below for examples.”

    Remarks

    Set the LightBorders property to True or False to disable or enable lightweight borders in all supported controls application-wide.

    Property Value Examples

    LightBorders[1] Value Example
    False Data Grid with Ordinary Borders
    True Data Grid with Lightweight Borders

    Code Example: Enable Light Borders at Startup

    Set the LightBorders property to True in the initialization section of the main application unit to display lightweight borders in the Data Grid control.

    Open the Project Source to Edit the Main Function

    To open the main application unit of your project, you can use one of the following options:

    • Select ProjectView Source in the main menu of your RAD Studio IDE.
    • Select the target project in the Projects Window and press Ctrl + V (alternatively, you can display the context menu and select the View Source option).
    uses
      Forms,
      cxLookAndFeels,  // Adds the cxLookAndFeels unit to use the TdxVisualRefinements class
    // ...
    begin
      TdxVisualRefinements.LightBorders := True;
      Application.Initialize;
      Application.MainFormOnTaskbar := True;
      Application.CreateForm(TMyForm, MyForm);
      Application.Run;
    end.
    

    Note

    Lightweight borders are a part of Light Style.

    Default Value

    The LightBorders property’s default value is False.

    Footnotes
    1. The LightBorders property affects only the Data Grid control.

    See Also