473,545 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5517
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************* *@exisconsultin g.com

"Martijn Leine" <ma**********@c lientsoft.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************* *@exisconsultin g.com

"Martijn Leine" <ma**********@c lientsoft.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.Co ntactperson.Col umnChanging +=
new DataColumnChang eEventHandler
Contactperson_C olumnChanging);

private void Contactperson_C olumnChanging(o bject sender,
DataColumnChang eEventArgs e)
{
string colDataType = e.Column.DataTy pe.ToString();

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

if (colDataType == "System.Int 32")
{
int newvalue = (int)(e.Propose dValue);
if (newvalue < 10) {
e.Row.SetColumn Error(e.Column,
newvalue.ToStri ng() + " 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.SetColumn Error(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************* *@exisconsultin g.com

"Martijn Leine" <ma**********@c lientsoft.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
386
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. After the data is corrected, the hint does not disappear ! (the exclamation mark however, does disappear). For Microsoft: If I'm correct, and it...
6
9846
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
1321
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 will be set with TextBox content and Errorprovider will be set in TextBox Validating event if it is empty. The Button is actually pop (ShowDialog)...
3
2611
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 working with bound data, you set the DataSource propertyof the ErrorProvider to automatically pick error messages up from thedatabase." So,...
2
6929
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 : Build a dataset containing a single table. Bind the textboxes on a windows form to the datatable. Bind the errorprovider control to the same datatable....
1
1337
by: Woody Splawn | last post by:
Is it possible to make use of the ErrorProvider logic in a grid?
4
3800
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 seems to me that setting the ToolTip.AutoPopDelay to a large value (e.g., Int32.MaxValue) should acomplish this goal, but it does not. 2. I want...
5
1654
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 problem happens when I use the show method of the child form it will try to validate the first field and since it need to not empty and its just opening...
4
1458
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 event. I want to popup a custom form instead of the default tooltip. Any help would be greatly appreciated. Thanks, Christian
0
7659
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7811
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7760
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5975
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5334
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3455
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1887
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
709
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.