ErrorProvider won't show the error

ErrorProvider won't show the error

Old forum URL: forums.lhotka.net/forums/t/2418.aspx


Optimist posted on Friday, February 23, 2007

Hi,

I've got a really simple Form that has a DataGridView with just 2 columns. Col 1 is an Identity field, col2 is text with a simple rule.

BindingSource1.DataSource = EntityCollection1
DataGridView1.DataSource = BindingSource1
ErrorProvider1.DataSource = BindingSource1

When the rule is broken, I can easily display the error message in a messagebox, but I can't get ErrorProvider to indicate the error (which is what I really want to do).

Is there something else that I should be doing?

Sad [:(]

Jimbo replied on Saturday, March 03, 2007

Are you providing enough real estate for the error  glyph in your column and row configuration ?
You also need row header if doing row validation vs cell validation.



Copyright (c) Marimer LLC