on 07-20-2009 1:35 PM
Hi everybody,
Usually when we add rows the rows are getting added at the end of the table.Now I have a requirement such that the rows should be added inbetween.For instance if the row 2 is selected and if I click on the button add row then the row should get added after 1st row before 2nd row.Please help me in approaching this.
Regards
Sharanya.R
Hi,
try something like this:
int insertPosition = wdContext.nodeTable().getLeadSelection()-1>0?wdContext.nodeTable().getLeadSelection()-1:0;
ITableElement element = ...
wdContext.nodeTable().addElement(insertPosition, element);
Regards,
Ladislav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.