By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,974 Members | 1,913 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,974 IT Pros & Developers. It's quick & easy.

Bug found : errorprovider - datagrid

P: n/a
I am using an errorprovider and a datagrid component on a
form. I use the errorprovider to display error hints in
the grid, in the case the entered data by the user is
checked and not found Ok.
After the data is corrected, the hint does not disappear !
(the exclamation mark however, does disappear).

For Microsoft:
If I'm correct, and it is a bug, can it be corrected ?

(I posted this bug-report here, because I was unable to
find the right place on the microsoft website to post it)

Greetings,

Martijn Leine
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Martijn,

If you are going to post a bug, then you should give a little more
information so that it can be correctly classified as a bug. For example
what is your setup? OS, .NET version, etc, etc. Also, a small code example
with steps to reproduce the bug are helpful as well.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Martijn Leine" <ma**********@clientsoft.nl> wrote in message
news:02****************************@phx.gbl...
I am using an errorprovider and a datagrid component on a
form. I use the errorprovider to display error hints in
the grid, in the case the entered data by the user is
checked and not found Ok.
After the data is corrected, the hint does not disappear !
(the exclamation mark however, does disappear).

For Microsoft:
If I'm correct, and it is a bug, can it be corrected ?

(I posted this bug-report here, because I was unable to
find the right place on the microsoft website to post it)

Greetings,

Martijn Leine

Nov 15 '05 #2

P: n/a
Martijn,

If you are going to post a bug, then you should give a little more
information so that it can be correctly classified as a bug. For example
what is your setup? OS, .NET version, etc, etc. Also, a small code example
with steps to reproduce the bug are helpful as well.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Martijn Leine" <ma**********@clientsoft.nl> wrote in message
news:02****************************@phx.gbl...
I am using an errorprovider and a datagrid component on a
form. I use the errorprovider to display error hints in
the grid, in the case the entered data by the user is
checked and not found Ok.
After the data is corrected, the hint does not disappear !
(the exclamation mark however, does disappear).

For Microsoft:
If I'm correct, and it is a bug, can it be corrected ?

(I posted this bug-report here, because I was unable to
find the right place on the microsoft website to post it)

Greetings,

Martijn Leine

Nov 15 '05 #3

P: n/a
Nicholas,

Sorry for late respons:

setup:
OS : Windows XP professional
..NET version 1.1
Visual Studio .NET 2003 (using C#)

example:
Errorprovider component (Errorprovider) (on form)
databound to a table of a dataset (DataSource =
objMyDataSet, DataMember = Contactperson)

Second errorprovider databound to another table:
(DataSource = objMyDataSet, DataMember = Company)

Code:

// set event handler
objMyDataSet.Contactperson.ColumnChanging +=
new DataColumnChangeEventHandler
Contactperson_ColumnChanging);

private void Contactperson_ColumnChanging(object sender,
DataColumnChangeEventArgs e)
{
string colDataType = e.Column.DataType.ToString();

// Reset error
e.Row.SetColumnError(e.Column, "");

if (colDataType == "System.Int32")
{
int newvalue = (int)(e.ProposedValue);
if (newvalue < 10) {
e.Row.SetColumnError(e.Column,
newvalue.ToString() + " is less than 10");
throw new Exception(); }
}
}
-----------------------------------------------
comment:

Because an error on a column of a row is set, the
errorprovider can display an exclamation mark at the
corresponding cell in the grid (which is bound to the
Contactperson table), and also a hint. This hint will not
disappear when the error is corrected:
e.Row.SetColumnError(e.Column, "");

I hope this gives you enough info to reproduce the
hint "problem".

Greetings,

Martijn Leine
-----Original Message-----
Martijn,

If you are going to post a bug, then you should give a little moreinformation so that it can be correctly classified as a bug. For examplewhat is your setup? OS, .NET version, etc, etc. Also, a small code examplewith steps to reproduce the bug are helpful as well.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Martijn Leine" <ma**********@clientsoft.nl> wrote in messagenews:02****************************@phx.gbl...
I am using an errorprovider and a datagrid component on a form. I use the errorprovider to display error hints in
the grid, in the case the entered data by the user is
checked and not found Ok.
After the data is corrected, the hint does not disappear ! (the exclamation mark however, does disappear).

For Microsoft:
If I'm correct, and it is a bug, can it be corrected ?

(I posted this bug-report here, because I was unable to
find the right place on the microsoft website to post it)
Greetings,

Martijn Leine

.

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.