ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: zhouqi on July 15, 2021, 06:55:42 pm
-
Hello,
I want to set the whole column selection state by colIndx.
I use grid.setSelection({colIndx: 1})
function to select the column, but it occur error, it must has rowIndx property.
When I use grid.setSelection({rowIndx: 0, colIndx: 1})
function, it only select the body data cell[0,1] not the whole column.
How to select the whole column by colIndx ?
-
Documentation of setSelection says "Selects a row or cell depending upon the parameters."
Please use Range object to select a column.
grid.Range({c1: 1}).select();
https://paramquery.com/pro/api#method-Range
-
Thanks, it's ok :)