Author Topic: Cell editable api inquiry  (Read 894 times)

YONGHOO KIM

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 20
    • View Profile
Cell editable api inquiry
« on: April 06, 2022, 12:47:58 pm »
Dear pqgrid :)

I want to change only one cell editable to non-editable or non-editable to editable after initialization(dynamically).
Is there any api ? I can only found api for column or whole datagrid, can not found change only one cell.

**For example pqgrid.setCellEditable (row, col, true or false); like this.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: Cell editable api inquiry
« Reply #1 on: April 06, 2022, 01:08:31 pm »
Please use Range().enable() method: https://paramquery.com/pro/api#method-Range

Few examples:

grid.Range("A1").enable( false ); //one cell

grid.Range("B1:E4").enable( false ); //multiple cells

grid.Range("B").enable( false ); //whole column

grid.Range("4").enable( false ); //whole row

Practical application: https://paramquery.com/pro/demos/import-xlsx