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.
Cell Content changing
-
- Site Admin
- Posts: 17564
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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);