Scrolling ColorGrid
Posted: Thu Feb 08, 2007 12:57 pm
Hi,
I've been trying to implement a 'scrolling' ColorGrid with teeChart v2, that is when new values are added to the colorgrid, the old values from the top should be deleted, so fixed number of rows would always be visible.
What is the recommended way to remove data from colorgrid? I've tried the ColorGrid.Delete method, but it seems to fail with index out of range when e.g. colorGrid1.Delete(0,100,true) is used. When the boolean parameter omitted, that deletes items from two separate locations on the colorgrid (on top and bottom row).
I've been trying to implement a 'scrolling' ColorGrid with teeChart v2, that is when new values are added to the colorgrid, the old values from the top should be deleted, so fixed number of rows would always be visible.
What is the recommended way to remove data from colorgrid? I've tried the ColorGrid.Delete method, but it seems to fail with index out of range when e.g. colorGrid1.Delete(0,100,true) is used. When the boolean parameter omitted, that deletes items from two separate locations on the colorgrid (on top and bottom row).