Inserting row into table if table not in focus
Inserting row into table if table not in focus
How I can insert one or more rows into table, if cursor currently at another item? Cell not focused. ItemNo is known.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
The code is the same as for modifying table at the caret position:
Code: Select all
var Data: Integer;
rve.BeginItemModify(ItemNo, Data);
with rve.GetItem(ItemNo) as TRVTableItemInfo do
InsertRows(RowCount, 1, RowCount-1);
rve.EndItemModify(ItemNo, Data);
rve.Change;