Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //dt is the datatable which will have all the data from the excel sheet.
- DataView dv = new DataView(dt);
- dtUpdated = dv.ToTable(true, columnName);
- //dtupated will have only specific column related data
- DataView dv = new DataView(dt);
- dtUpdated = dv.ToTable(true, columnName);// exception is thrown in this line.
Add Comment
Please, Sign In to add comment