Author Topic: Add column head when copy  (Read 346 times)

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 142
    • View Profile
Add column head when copy
« on: May 10, 2024, 06:52:46 am »
Dear Team,
When copying data from grid to excel, column head couldn't be pasted to excel. Would you like to copy column head for copy action?
Notice: when copy between pqgrid, the column head shouldn't be pasted, it can be judged by pqgrid.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Add column head when copy
« Reply #1 on: May 10, 2024, 12:28:12 pm »
Header cells can be included / excluded from copied data based on the copyModel.header option.

https://paramquery.com/pro/api#option-copyModel

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 142
    • View Profile
Re: Add column header when copy
« Reply #2 on: June 05, 2024, 07:19:26 am »
Dear Team,
When I copied data between two pqgrid, the header was pasted to destination cell, it's not what I wanted.
When data were copied to excel, the values of select(column) also pasted to excel, it also a trouble for some extra usfuless data were copied.