Skip to content

_text type column is skipped when binding a DataTable #6643

Open

Description

@dca00

When a DataTable is filled from a NpgsqlDataReader whose results include a _text column, that column is skipped by a DataGridView.

To reproduce,

select * from pg_catalog.pg_settings

The column enumvals will be skipped.

The Nuget package used is version 10.0.3.0.

Activity

  1. NinoFloris commented on Sep 10, 2026

    @NinoFloris
    Member

    I'm no expert on these legacy components but this may have something to do with the fact other databases don't support arrays as types. Does this happen for any kind of array column?

  2. dca00 commented on Sep 10, 2026

    @dca00
    Author

    You have to provide compatible types.

  3. NinoFloris commented on Sep 10, 2026

    @NinoFloris
    Member

    That's obviously not the issue - we return string[] from reader.GetValue for _text just fine - so there's something else going on around DataTable.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions