small DataTable refactoring (patches for #283, #284 and #285)


small DataTable refactoring, patches for #283, #284 and #285 (probably #281 too)