Page 1 of 1
Cell Content changing
Posted: Mon Oct 20, 2014 8:49 am
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.
Posted: Tue Oct 21, 2014 1:45 pm
by mohsen24000
No idea for this!?
Posted: Fri Oct 24, 2014 10:24 am
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);