[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRIDVIEW color and size


Hello

Just for testing
I tried to modify the original GridView code written by "Benoît Minisini"
(Sorry for the mess)
I marked:
'sharon

It seems that things can be done but I came to the conclusion that only "Benoît Minisini" could do it perfectly

And there are other things that I haven't been able to implement such as
Add multiple vertical header columns
It will be possible to insert an image in the vertical header columns in addition to the caption
It will be possible to change colors in the vertical header columns

Really appreciate the contribution of "Benoît Minisini" and everyone to GAMBAS

Many thanks


---------- Original Message -----------
From: T Lee Davidson <t.lee.davidson@xxxxxxxxx>
To: user@xxxxxxxxxxxxxxxxxxxxxx
Sent: Wed, 17 Apr 2024 18:44:15 -0400
Subject: Re: GRIDVIEW color and size

> On 4/17/24 13:54, Mayost Sharon wrote:
> > Hello
> > 
> > You say this:
> > Public Sub GridView1_Data(Row As Integer, Column As Integer)
> >     GridView1.Rows[Row].Text = " "
> > End
> > 
> > But this causes two problems:
> > 1. If there are many records for example (500000) it does not change the
> >   width of the column header because it calculates the size of the width
> > of the column header according to the size that "500000" occupies
> > 
> > 2. It causes all the time to enter the Data event endlessly
> > 
> > Thanks
> 
> I did not say to set the Row.Text in the Data event. The Data event is for 
> filling the content of a GridView *cell*. The row header is not a cell.
> 
> Perhaps try, after you have filled the cell data with the data event, doing this:
> For x As Integer = 0 To GridView1.Rows.Max
>    GridView1.Rows[x].Text = " "
> Next
> 
> -- 
> Lee
> 
> --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
> --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
------- End of Original Message -------

Attachment: gb.gui.base.zip
Description: Zip archive


References:
GRIDVIEW color and size"Mayost Sharon" <sharon@xxxxxxxxx>
Re: GRIDVIEW color and sizeT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: GRIDVIEW color and sizeT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: GRIDVIEW color and size"Mayost Sharon" <sharon@xxxxxxxxx>
Re: GRIDVIEW color and sizeT Lee Davidson <t.lee.davidson@xxxxxxxxx>