Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loop through nested datagrid export to excel

Status
Not open for further replies.

ehaze

Technical User
Oct 16, 2009
254
US
I have a datagrid that is setup like this:

Header row

row

row

New Table

row

row

row

Basically a datagrid with parent a child relationship. I can export the primary table, but the nested child table is inserted into a single cell in Excel. How would you export the datagrid and maintain the correct layout?

My failed attempt:
Java:
<script type="text/javascript">
      function NewTime() {
        // Get the Query String values and split them out into the vals array
        var vals = new Object();
        var qs = location.search.substring(1, location.search.length);
        var args = qs.split("&");
        for (var i=0; i < args.length; i++) {
            var nameVal = args[i].split("=");
            var temp = unescape(nameVal[1]).split('+');
            nameVal[1] = temp.join(' ');
            vals[nameVal[0]] = nameVal[1];
        }
        var issueID = vals["ID"];
        //use this to bring up the pretty pop up
        NewItem2(event,"[URL unfurl="true"]http://sharepointed.com/Lists/ListNotes/NewForm.aspx?AccNum="[/URL] + issueID);
    }
</script>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top