Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow Grid with DynamicBackColor
Message
From
22/02/1999 03:06:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00189889
Message ID:
00189893
Views:
10
>I'm wondering why my grid slows down so much when i'm using dynamic back color
>
>Here is what I'm using:
>
>this.grid1.SetAll("DynamicBackColor","iif(gridfile.selected,thisform.SelectedColor,thisform.UnSelectedColor)", "Column")
>
>If I comment out this code the grid runs a LOT more quickly.
>
>Any idea how to speed things up?
>
>Thanks,
>
>scott
Scott,
With dynamicbackcolor grid doesn't have a noticable slow down. Are thisform.un/selectedcolor properties or methods ? Or is there any other method running in between to set gridfile.selected ? Try with an expression like :
iif(.t.,rgb(255,255,0),rgb(255,255,255))
with methods in between disabled to see if it's really DynBkClr slowing down. Grid DynBkClr is only evaluated for visible part (it doesn't make difference that you have 100 or 50000 recs).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform