Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
how to programmaticaly delete those rows which contains primary keys null values in datagridview

sorry if the question confused anybody. I meant to say in my code if somebody leave a row blank or null it should delete the row which contain null while updating. this eases further error handling.
Posted
Updated 30-Sep-11 8:11am
v2
Comments
Herman<T>.Instance 28-Sep-11 10:58am    
how come the PK is gone/not created?
Al Moje 28-Sep-11 22:24pm    
You could not create a PK with null value and neither to create it without a unique value assigned on it? How come…?
member60 29-Sep-11 6:12am    
first thing primary key columns cannot be null , then why the problem for deleting arises ?

1 solution

Have a look at my articles, admittedly C++/CLI, I have an error handler which forces the user to input values to certain cells here
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900