<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 17 mag 2019 alle ore 17:41 Benoît Minisini <<a href="mailto:g4mba5@gmail.com">g4mba5@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le 17/05/2019 à 17:29, Peter Peyotle a écrit :<br>
> Hello and good evening<br>
> <br>
> I use a tableview with a vertical header.<br>
> Unfortunately, I find no settings for the width of the vertical header <br>
> and the ability to set the font left-aligned.<br>
> This is not a problem with a horizontal header and can be set up and <br>
> read out via the column properties. But what about a vertical header? <br>
> This does not correspond to the Column value -1 or so.<br>
> <br>
> Best regards<br>
> Klaus-Peter<br>
> <br>
<br>
I guess that this limitation comes from the past, when the GridView was <br>
native.<br>
<br>
Now it should be possible to define the alignment of the row header <br>
without problem.<br>
<br>
Its width can already be defined with the GridView.Rows.Width property.<br>
<br>
Regards,<br>
<br>
-- <br>
Benoît Minisini<br></blockquote><div><br></div><div> Hi Peter,</div><div>something like that:</div><div><br></div><div>Public Sub Form_Open()<br><br> With TableView1<br> .Rows.Count = 4<br> .Rows.Width = -1<br> .Columns.Count = 4<br> .Rows[0].Text = TextAlign("Coca Cola")<br> .Rows[1].Text = TextAlign("Seven Up")<br> .Rows[2].Text = TextAlign("Cervesa")<br> .Rows[3].Text = TextAlign("Chinotto")<br> .Header = GridView.Vertical<br> End With<br> For i As Integer = 0 To 3<br> TableView1[i, 0].Text = String(10, "*")<br> TableView1[i, 1].Text = String(10, "*")<br> TableView1[i, 2].Text = String(10, "*")<br> TableView1[i, 3].Text = String(10, "*")<br> Next<br><br>End <br><br>Private Function TextAlign(value As String) As String<br><br> Return Space(30 - String.Len(value)) & value<br><br>End</div><div><br></div><div>Regards</div><div>Gianluigi<br></div></div></div></div></div>