Click here to Skip to main content
14,358,045 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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...
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100