Hey Fot,
There are 2 issues, as I see it.
#1. You have to instantiate your Code object by saying something like:
Code:
private object Code = new object();
#2. The "Code" DataColumn that you are adding to the DataTable, you are setting it as type Int32. That's fine, but then you're trying to assign object Code to it. So, you either have to convert your object Code to an Int32, or just use an Int32 variable.
Regards,
Mike