MSFlexGrig 5.0 
Author Message
 MSFlexGrig 5.0

I have a flex grid configured such that it has 100 rows in total, but
only 20 visible at a time. New rows are always added at the top (after
the column titles), but I don't want it's size to go over 100 rows.

I am looking for code to efficiently move all rows down by one, in
order to add the newest to the top. Currently I am using code that
copies cell contents one by one, but is *sooooo slooooow*.

Any ideas?

Cheers, Paul.

Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.



Sun, 02 Dec 2001 03:00:00 GMT  
 MSFlexGrig 5.0

were released on Wed, 16 Jun 1999 07:52:04 GMT
bearing the following fruit:

Quote:
>I have a flex grid configured such that it has 100 rows in total, but
>only 20 visible at a time. New rows are always added at the top (after
>the column titles), but I don't want it's size to go over 100 rows.

>I am looking for code to efficiently move all rows down by one, in
>order to add the newest to the top. Currently I am using code that
>copies cell contents one by one, but is *sooooo slooooow*.

>Any ideas?

MSFlexGrid1.AddItem  "Some Text", 0

Adds a new row at the top of the flexgrid.

Not sure why you are copying cell contents.

Drac



Sun, 02 Dec 2001 03:00:00 GMT  
 MSFlexGrig 5.0
Thanks Drac, I can use RemoveItem to maintain the list at 100 rows.



Quote:

> were released on Wed, 16 Jun 1999 07:52:04 GMT
> bearing the following fruit:

> >I have a flex grid configured such that it has 100 rows in total, but
> >only 20 visible at a time. New rows are always added at the top
(after
> >the column titles), but I don't want it's size to go over 100 rows.

> >I am looking for code to efficiently move all rows down by one, in
> >order to add the newest to the top. Currently I am using code that
> >copies cell contents one by one, but is *sooooo slooooow*.

> >Any ideas?

> MSFlexGrid1.AddItem  "Some Text", 0

> Adds a new row at the top of the flexgrid.

> Not sure why you are copying cell contents.

> Drac

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


Sun, 02 Dec 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. MsFlexGrig - Active cell positioning

2. Detecting Common Controls 5.0, 5.0 SP2, 6.0

3. Can VB 5.0 work with Foxpro 5.0?

4. HELP !!! VB 5.0 + GRAPHICS SERVER 5.0

5. VB 5.0 and VFP 5.0 compatible?

6. Can I use Visual Foxpro 5.0 and Visual Basic 5.0

7. SQLAnywhere 5.0 vs Visual Basic 5.0

8. Calling Visual C++ 5.0 DLL Functions From Visual Basic 5.0

9. VB 5.0 and Visual SourceSafe 5.0 Integration

10. True DB Grid 5.0 and VB 5.0 using RDO

11. looking for financial and statistical libaries (e.g.time series) - VB 5.0 or VC 5.0

12. Is a VB 5.0 ActiveX DLL Compatible with VC 5.0

 

 
Powered by phpBB® Forum Software