Page 1 of 1

dataviewctrl

Posted: Wed Aug 07, 2019 5:02 am
by Wolfgang
Hello

Is there a easy way to switch the col and row in showing (switch horizontal with vertical)? Meaning I will have different numbers of colunms. And in every row there will be a different source, but each row will have the same number of columns.

Usually you have it like this:

datasource1 datasource2 datasource3
1 1a 1aa
2 2a 2aa
3 3a 3aa[/quote]
But I want:

datasource1 1 2 3
datasource2 1a 2a 3a
datasource3 1aa 2aa 3aa

Re: dataviewctrl

Posted: Wed Aug 07, 2019 6:12 am
by Wolfgang
What I forgot to ask, is it possible to show htmllistbox also inside a dataviectrl? As one of the sources should be shown as html text.

Re: dataviewctrl

Posted: Wed Aug 07, 2019 7:43 am
by doublemax
Is there a easy way to switch the col and row in showing (switch horizontal with vertical)?
No, you'll have to adjust your model accordingly.
What I forgot to ask, is it possible to show htmllistbox also inside a dataviectrl? As one of the sources should be shown as html text.
Not easily. You'd have to create a new DVC renderer using wxHtmlDCRenderer.

Re: dataviewctrl

Posted: Wed Aug 07, 2019 7:57 am
by Wolfgang
doublemax wrote:
Wed Aug 07, 2019 7:43 am
Is there a easy way to switch the col and row in showing (switch horizontal with vertical)?
No, you'll have to adjust your model accordingly.
Thanks, I feared that already, and had the same idea to rewrite the model, so that it will write the right things in the rows, and also add the needed columns. So that should be possible.
doublemax wrote:
Wed Aug 07, 2019 7:43 am
What I forgot to ask, is it possible to show htmllistbox also inside a dataviectrl? As one of the sources should be shown as html text.
Not easily. You'd have to create a new DVC renderer using wxHtmlDCRenderer.
Here I understand what you mean, but have no idea how to achieve it.