472,784 Members | 905 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,784 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 5466
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: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.