Limit user selection to a single column

Tags: #<Tag:0x00007f0b03b923b8>

Hi there,

New user here! I’ll be asking various questions.

First one - is it possible to limit the user’s range selection to a single column - during the drag?

I assume I could always reset it after if not.

I ask, as our columns will be different datatypes, and it doesn’t make sense for a user to select ranges that span multiple columns / datatypes, though it might makes sense for them to select whole rows (to clear or move).

Thanks,
Dave

Ohh I did see your first post :slight_smile: Maybe you’re new but the questions relate to more complex subjects.

The selection does not have a beforeSelect event, it only provides afterSelection events so you can reset the selection and repaint it.
If you can always block a change on a cell that is a different type or location via beforeChange hook.

1 Like