ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: YONGHOO KIM on April 06, 2022, 12:47:58 pm

Title: Cell editable api inquiry
Post by: YONGHOO KIM 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.
Title: Re: Cell editable api inquiry
Post by: paramvir 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