Table control背景顏色的問題

目前這個問題,現在回想一下之前就已經存在,就是如果設定了背景顏色之後,如下圖所示

![](upload://6T68Lozm03bZKuEPed8KcwMLGzC.jpeg)

之後要換設定其他位置,原來的位置該如何先清除掉?以前的做法就是先將原來的位置先設定為透明,再設定其他位置,是否有像清除整個table字串一樣,給它一個2D空字串就可以清除掉全部的做法?

![](upload://jeHCz8uEUK3oa8AVCq6tAcRC2Vr.jpeg)

JD41075.8692476852

謝謝JD,給你一個讚!之前測試時發現在for loop設定cellBGColor蠻費時間的,尤其是資料有二千筆時大概要九秒鐘左右,後來我改用設定cellFontColor,如下示意圖,雖然也要花二三秒鐘但至少有快了一點

![](upload://vhapIo8pEVec17C6FA1s7zIVV2O.jpeg)

補充一下我所說的問題原來是7.1版以後才有的問題

http://www.ni.com/white-paper/7324/en

Table Property Nodes Run Slow After Upgrade from 7.1
Property nodes that are used to update table controls on the front panel (such as Set Cell Value, Active Cell, CellBGcolor, CellFontColor) run about 7 times slower in LabVIEW 8.x versions than in 7.1 and prior.

Workaround: Use defer front panel updates to avoid rapid updates of the UI which would probably not be noticed. This design pattern can speed up the program to levels much faster than 7.1 ran before the slowdown.

Reported Version: 8 Resolved Version: N/A Added: 07/08/2008

ancle41079.3774652778