Move the Checkbox Column in a TableView? #3915
-
Hey Guys, I was wondering is there any way to move the Checkbox column created by the CheckBoxTableSourceWrapperByIndex to another Position instead of the first Column. If not, any Ideas on how to solve that Problem. I've looked into the CheckBoxTableSourceWrapperByObject but was unable to make any sense of it due to there not being an actual Example with use of a class as T. Thanks for the help in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The way this source works is to wrap another source and then manipulate the headers and 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 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 bounds etc. Indexer would also need adjusted |
Beta Was this translation helpful? Give feedback.
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…