Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i import data from excel to gridview, i want to save status to text document

case 1: if record is present before importing from excel


ID Name Status
01 A Already Exists


case 2: if record is not present before importing from excel


ID Name Status
02 B saved successfully


I am using C# WindowsForms Application & .NET Framework 2.0
Can anyone help me to solve this problem.


Thanks.
Posted

1 solution

This is logical problem...When u importing data from excel then before insert, Check Data is present or not in database...If data is present then insert/update Status accordingly...
 
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