Author Topic: How to make selected cells non-editable  (Read 1765 times)

hideki.yoshikura

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
How to make selected cells non-editable
« on: July 15, 2020, 09:46:16 am »
Hi,

Param query version is using 6.2.4.
I want to change the attribute of the selected cell (grid.Selection ().getSelection ()) of the grid at some action (when clicking a button, etc.).
The attributes to change are:
editable:false

Please tell me how to implement it.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: How to make selected cells non-editable
« Reply #1 on: July 15, 2020, 04:04:42 pm »
Changing editability of a selection is supported in version >= 7 only

Code: [Select]
  grid.Selection().enable( true );

https://paramquery.com/pro/api#method-Range

https://paramquery.com/pro/api#method-Selection

hideki.yoshikura

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: How to make selected cells non-editable
« Reply #2 on: July 16, 2020, 10:46:22 am »
Thank you for answering