I'm able to create worksheets and create rows separately, but if I try
to create a worksheet and add rows to that empty worksheet, I'm unable
to.  I'm guessing it has to do with the new worksheet not having
headers, once I manually add headers I can add rows.  Is there a way
to program adding the headers to a new worksheet?

I'm doing something like this:

AtomLink link =
entry.Links.FindService(GDataSpreadsheetsNameTable.WorksheetRel,
null); // (where entry is my spreadsheet)

WorksheetQuery query = new WorksheetQuery(link.HRef.ToString());
WorksheetFeed worksheetFeed = service.Query(query);

WorksheetEntry lWorksheet = new WorksheetEntry(100, 20, "New");
WorksheetEntry lCreatedWorksheet =
(WorksheetEntry)worksheetFeed.Insert(lWorksheet);

// Now I setup for adding rows
AtomLink listFeedLink =
lCreatedWorksheet.Links.FindService(GDataSpreadsheetsNameTable.ListRel,
null);
ListQuery rowQuery = new ListQuery(listFeedLink.HRef.ToString());
ListFeed rowFeed = service.Query(rowQuery);

// If I try to add a row, it fails, I'm guessing because as I add
Elements to the row, it doesn't understand them, because the worksheet
doesn't contain any "Elements" or Headers I guess.

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to