Skip to content

Move the Checkbox Column in a TableView? #3915

Answered by tznind
NopeImNotHere asked this question in Q&A
Discussion options

You must be logged in to vote

The way this source works is to wrap another source and then manipulate the headers and this indexer to insert the extra column.

The magic is in the base class CheckBoxTableSourceWrapper

It is hard coded to index 0 i.e. first column. But it should be possible to move it by just replacing all instances of ==0 and InsertAt 0 with a property.

I can look at adding support for that or you can copy paste the two classes to your own code and make the change.

I made it 0 for simplicity, especially when wrapping multiple times e.g. wrapper->wrapper->original source. But now reason not to add a user configurable property.

To do properly would require lots of new tests though e.g. for index out of b…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@NopeImNotHere
Comment options

@NopeImNotHere
Comment options

Answer selected by NopeImNotHere
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants