Cell Content changing

General TRichView support forum. Please post your questions here
Post Reply
mohsen24000
Posts: 75
Joined: Fri Jan 06, 2012 8:13 pm

Cell Content changing

Post by mohsen24000 »

Hi, Dear Admin
When a cell content changed in formatted richview, how apply it:
1-rv.format
2-rv.reformat
3-...
Please guide for the fastest way...

Thanks a lot.
mohsen24000
Posts: 75
Joined: Fri Jan 06, 2012 8:13 pm

Post by mohsen24000 »

No idea for this!?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry for the delay.

Reformat can be used only if document is not changed, but some content is resized. It does not make sense here.

Format is ok, and it is the only option in TRichView.
It reformats the whole document, not only the table, so it is not optimal.
If you use TRichViewEdit, you can format only the table containing changed cells using BeginItemModify and EndItemModify.

Code: Select all

var ItemNo, Data: Integer;

ItemNo := table.GetMyItemNo
rve.BeginItemModify(ItemNo, Data);
...
modify cells here
...
rve.EndItemModify(ItemNo, Data);
Post Reply