Skip to content

ErrorText property on Datagridview cell #1317

Closed

Description

@itg-assistant

Mariano asked 2018-01-16 17:38:18 UTC

Hi, i want to set some datagridview cells with an error message but browser dont show anything, same code on WinForm it's Ok.

dataGridView1[1, 1].ErrorText = "Error";
dataGridView1[2, 3].ErrorText = "Error";

property 'ShowCellErrors' is True.

Attached sample with the problem and Winform version.

Best Regards,

Mariano

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2018-01-16 18:17:42 UTC

    There is an issue that will be fixed in the upcoming release that seems similar to this. If you hit refresh does it show the error icon?

    If yes, use this as a workaround until the fix is available:

    dataGridView1.BeginUpdate();
     dataGridView1[1, 1].ErrorText = "Error";
     dataGridView1[2, 3].ErrorText = "Error";
     dataGridView1.EndUpdate();
    
  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Mariano answered 2018-01-16 18:25:13 UTC

    BeginUpdate, EndUpdate do the trick, thanks Luca

  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Tiago (ITG) answered 2018-01-16 18:49:21 UTC

    Interesting enough, setting the error in the data table works flawlessly.

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

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions