简体   繁体   中英

How to insert headers in google spreadsheet?

i am trying to add an arraylist as header in spreadsheet. i've refer the google apis, and i am like able to insert row. But now i need to insert array of row in one shot. is it possible please help.

 // Create a local representation of the new row.
  ListEntry row = new ListEntry();
  row.Elements.Add(new ListEntry.Custom() { LocalName = "firstname", Value = "Joe" });
  row.Elements.Add(new ListEntry.Custom() { LocalName = "lastname", Value = "Smith" });
  row.Elements.Add(new ListEntry.Custom() { LocalName = "age", Value = "26" });
  row.Elements.Add(new ListEntry.Custom() { LocalName = "height", Value = "176" });

  // Send the new row to the API for insertion.
  service.Insert(listFeed, row);

its not possible to insert multiple rows with listfeed. use cellfeed instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM