ErrorText property on Datagridview cell

0
0

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

Attachment
  • You must to post comments
0
0

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

Attachment
  • You must to post comments
0
0

BeginUpdate, EndUpdate do the trick, thanks Luca

  • You must to post comments
0
0

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();
  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.