The user can enable/disable lines between TreeGrid nodes (disabled by default) including dhtmlxtreegrid_lines.js into the page and calling the following command:
treegrid.enableTreeLines(true);