473,386 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Bug found : errorprovider - datagrid

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
3 5504
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Martijn Leine | last post by:
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....
6
by: M O J O | last post by:
Hi, How do I check if an ErrorProvider has errors? Take for example this code... (err = ErrorProvider...) Public Sub Test If TextBox1.Text= "" Then
0
by: Issac | last post by:
Hi, I am writing a program which will be used in Win2000 and Win98 platform. The program include a Form (called myForm) which has a TextBox, Tooltip, Errorprovider and a Button. Tooltip...
3
by: Jeppe Jespersen | last post by:
I read the following - regarding the ErrorProvider control - in the MOC Course Material for course 2373: "You can set your own error messages manually, as shown in the following example, or when...
2
by: Lenster | last post by:
I'm having problems using the errorprovider in VB.NET to automatically display an error icon next to textboxes bound to the same dataset as the errorprovider. The sequence of events is : ...
1
by: Woody Splawn | last post by:
Is it possible to make use of the ErrorProvider logic in a grid?
4
by: ljlevend | last post by:
I have the following issues: 1. I want to make it so that ToolTips never go away once they are shown until the user moves the mouse outside of the control for which the ToolTip is assigned. It...
5
by: Alvaro Lamas | last post by:
I have a problem with the ErrorProvider with a mdi interface, I have a MDI form which opens a child form, that child form uses the errorprovider to show the problems with the data entry. The...
4
by: Freeon | last post by:
How do I capture the hover event on the ErrorProvider control? I created a custom control and inherited the ErrorProvider. Problem is I don't know which method to override to capture the hover...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.