MR Excel Upload

any suggetions for creating a validation method for the fields while doing excel upload through code?