Skip to content

WorksheetSettings.Behavior_DoubleClickToFitColumnWidth has no effect in ReoGridWPF.dll 3.3.0 #552

@lobo-n3

Description

@lobo-n3

Description

Calling worksheet.SetSettings(WorksheetSettings.Behavior_DoubleClickToFitColumnWidth, true); does not enable the expected behavior. When double-clicking on a column header separator, the column width does not auto-adjust to fit the content.

Expected Behavior:
When the setting Behavior_DoubleClickToFitColumnWidth is enabled, double-clicking on the boundary between column headers should resize the column to fit its content, similar to Excel.

Actual Behavior:
Double-clicking on the column header boundary has no effect. The column width remains unchanged.

Reproduction Steps:

  1. Create a WPF project using ReoGridWPF.dll 3.3.0 and .NET 8.

  2. Initialize a worksheet and add some data.

  3. Call: worksheet.SetSettings(WorksheetSettings.Behavior_DoubleClickToFitColumnWidth, true);

  4. Run the application.

  5. Double-click the boundary between column headers (e.g., between A and B).

Result: Column width does not change.

Edition

  • WPF
  • Version: 3.3.0

Environment

  • .NET Version: .NET 8
  • OS: Windows 11 Pro (64-bit)
  • Language of OS: English

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions