Fixes a bug with datagrid overflow resulting in extremely diminished performance, and (in most cases) crashing. Specifically, it addresses Bug #113, and Bug #108 (duplicates).