Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Clear a dynamic Grid
Wed, Jan 16 2013 4:42 AMPermanent Link

Friedrich Westermann

Hello
i want to use a Grid for different data.
Maybe i'm stupid but i don't find a way to completely clear a grid.
I'm Searching for setting column count, row count or at least a clear all
Thanks
Fritz
Thu, Jan 17 2013 10:17 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Fritz,

<< i want to use a Grid for different data.  Maybe i'm stupid but i don't
find a way to completely clear a grid. I'm Searching for setting column
count, row count or at least a clear all >>

The GridColumns.Clear method is what you want:

http://www.elevatesoft.com/manual?action=viewmethod&id=ewb1&comp=TGridColumns&method=Clear

but it has a bug in it currently.  I'm working on a new build that will be
out shortly, I just need to finish fixing a bug with the finalization order
in the compiler.

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com





Thu, Jan 17 2013 10:30 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Fritz,

Actually, that answer was incomplete: I also added a DeleteAllRows which
will delete all rows from the grid also (non-data-bound), so you'll need to
do both:

  Grid1.Columns.Clear;
  Grid1.DeleteAllRows;

in order to completely clear a non-data-bound grid.

This all applies to the new, upcoming 1.01 build 5.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jan 17 2013 4:09 PMPermanent Link

Friedrich Westermann

Thanks for the Information
Its not urgent, i'm still in a deep learnig curve so i can do a lot of other things and learn of course.

By the way congratulation to these product.
You are doing a great job, thanks.

Fritz
Fri, Jan 18 2013 9:22 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Fritz,

<< By the way congratulation to these product. You are doing a great job,
thanks. >>

Thanks. Smile

Tim Young
Elevate Software
www.elevatesoft.com
Image