473,387 Members | 1,863 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,387 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 6664
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
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...

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.