473,232 Members | 1,538 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,232 software developers and data experts.

how to programatically clear the error icon in a datagridview?


When the user loads the data into a DataGridView, some error icons may
be shown to
indicate some errors like when uniqueness is violated. The user can go
ahead modifying
the data rows. Once the violation is fixed, I like to clear the error
icons, but
I could not do so.

Any tips? Thanks a lot!

Henry J.

Dec 4 '05 #1
2 6648
try DataRow.ClearErrors

Henry J. wrote:
When the user loads the data into a DataGridView, some error icons may
be shown to
indicate some errors like when uniqueness is violated. The user can go
ahead modifying
the data rows. Once the violation is fixed, I like to clear the error
icons, but
I could not do so.

Any tips? Thanks a lot!

Henry J.

Dec 4 '05 #2
Thanks! That's it.

Dec 5 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: dilbir | last post by:
Hi, At start of my application I create one connection object then use that connection for retrieving ,inserting ,upedating and deleting of data. While closing the application i close the...
0
by: Asif Mohammed | last post by:
Hello, I have a datagridview bound to a database table with 2 columns. One is an ID column "NameID" which is hidden, the other is called "Name". The schema picture is here :...
1
by: Huy Nguyen | last post by:
Hello all I've been trying to do a little project here and i am stuck at the point where I can not clear the data out of datagridview table. I've done lots of reading from different sources on...
4
by: Ravi, Dallas, Texas | last post by:
http://www.netnewsgroups.net/group/microsoft.public.dotnet.framework.aspnet/topic22503.aspx shows ways to get errors in a server context. i am trying to find ways to trap the line number where...
2
by: Huy Nguyen | last post by:
Hello, How can i force the cell to accept the input for now and flag it as error for user to correct it later. For Example: case 1. I have a column that is NOT bound to database table, then I...
1
by: samadams_2006 | last post by:
Hello, I have an unbound DataGridView on a VBForm, and I would like to display an icon or image in the first column of a record to indicate what type of record it is. For example, error...
4
by: thelner | last post by:
Well, the app im working on makes an error when trying to populate a datagridview when the source contains date field. Any solution to my problem? dgvInvoices.DataSource =...
2
by: sreenu123 | last post by:
Hi How to clear records in DataGridView using C# Regards Sreeni
11
by: Jonathan Austin | last post by:
Ok I got it now, thank you everyone for that. Now I have another question. I'm creating an error report from, if a textbox is blank then it'll display a text in another textbox stating "Textbox is...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.