Skip to content

DataGridView and pictures in cells - problem when filename contains spaces #1434

Description

@itg-assistant

Dino Novak asked 2018-03-24 22:08:52 UTC

HI,

I am trying to set picture for some cells in DataGridView. Pictures are stored withing Resources folder locally on the server

dgwPictures.Rows[e.RowIndex].Cells[2].Style.BackgroundImageSource = "\..."

all is working fine if pictures do not have spaces in names, with pictures containing spaces picture is not displayed.

I tried using Uri.EscapeDataString(stringFileName) but no luck with it.

Thanx for help,

DiNo

Activity

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