Hi, I have a dataset (from an excel file).
I need to validate this, as I cant trust that the excel spreadsheet will comply with all the rules that my customer has stated.
I can easily import a spreadsheet to a dataset, but now I need to validate it. I was hoping to use the Column_Changing event, but it seems that when the dataset is loaded, this doesnt count asa column change event, and so nothing is fired.
should the column_changing event be firing when I do dataAdapter.fill(ds)?, or do I need to then go through the ds manually, and check each row / column against the validation rules I have?
Any better ways of validating data from a spreadsheet?
Cheers
K
I need to validate this, as I cant trust that the excel spreadsheet will comply with all the rules that my customer has stated.
I can easily import a spreadsheet to a dataset, but now I need to validate it. I was hoping to use the Column_Changing event, but it seems that when the dataset is loaded, this doesnt count asa column change event, and so nothing is fired.
should the column_changing event be firing when I do dataAdapter.fill(ds)?, or do I need to then go through the ds manually, and check each row / column against the validation rules I have?
Any better ways of validating data from a spreadsheet?
Cheers
K