Link to home
Start Free TrialLog in
Avatar of Shahid-Abbasi
Shahid-Abbasi

asked on

Problem in load excel data into dataset using datadapet.fill method

Hi

When i load the excel data into dataset using datadapet.fill method, It shows empty cell value where invalid dates are present. I want to show the error of invalid date. kindly help to me to sort the issue.
Avatar of Praveen Kumar
Praveen Kumar
Flag of India image

Then you should use, DataReader instead of Adapter.
1. Read the data using DataReader
2. Try Parse your date column to valid dates, if not possible alert to the user.

Avatar of Shahid-Abbasi
Shahid-Abbasi

ASKER

same thing is happening while using a datareader aswell.
ASKER CERTIFIED SOLUTION
Avatar of Shahid-Abbasi
Shahid-Abbasi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
strange, this issue is very common, but expert team is failed to provide me the solution of this issue,