Skip to content

Exception on DGV RowHeader width #313

Closed

Description

@itg-assistant

Alex Prinias asked 2016-10-11 19:28:21 UTC

Hi,

this is minor and, I suppose, very easy to fix, but since I run into it I thought I should report.

If I set a DGV's RowHeadersWidth to 2, I get an argument out of range value exception saying that it cannot be less than 4.

Best,
Alex

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2016-10-11 19:51:30 UTC

    It's a limit set in the code to be the same as WinForms. We can set it to 1 or 0 (becoming hidden).

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 12, 2026
  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Alex Prinias answered 2016-10-11 19:59:16 UTC

    Hi Luca, thanks for your answer.

    I didn't know about the limit in WinForms. In such case, I thought that it should set the value to Max(value, 4) silently, it was the exception that struck me. If WinForms throw the same exception, I would leave it as it is to be as close to WinForms as possible. In any case is nothing important.

    Best,
    Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions