function changetotable(printdatagrid) { var tablestring = '
1) { tablestring += ' rowspan="' + frozencolumns[index][i].rowspan + '"'; } if (typeof frozencolumns[index][i].colspan != 'undefined' && frozencolumns[index][i].colspan > 1) { tablestring += ' colspan="' + frozencolumns[index][i].colspan + '"'; } if (typeof frozencolumns[index][i].field != 'undefined' && frozencolumns[index][i].field != '') { namelist.push(frozencolumns[index][i]); } tablestring += '>' + frozencolumns[0][i].title + ' | '; } } } for (var i = 0; i < columns[index].length; ++i) { if (!columns[index][i].hidden) { tablestring += '\n1) { tablestring += ' rowspan="' + columns[index][i].rowspan + '"'; } if (typeof columns[index][i].colspan != 'undefined' && columns[index][i].colspan > 1) { tablestring += ' colspan="' + columns[index][i].colspan + '"'; } if (typeof columns[index][i].field != 'undefined' && columns[index][i].field != '') { namelist.push(columns[index][i]); } tablestring += '>' + columns[index][i].title + ' | '; } } tablestring += '\n
---|---|
'; if (e + 2 == namelist[j].field.length) { tablestring += rows[i][namelist[j].field.substring(0, e)]; } else tablestring += rows[i][namelist[j].field]; tablestring += ' | '; } tablestring += '\n