cancel
Showing results for 
Search instead for 
Did you mean: 

how to add row in table

Former Member
0 Kudos

Hi All,

My application consists of a table structure,containing 2 rows in it.The table is editable.

Now I want to add empty rows in between the two rows .How to do this?

Thanks & regards

Prajakta

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

try with this code,i hope it will solve ur problem

//To create and add element

wdContext.nodeOrders().createAndAddElement();

int index =1;

IWDNodeElement element = wdContext.nodeOrders().createElement();

//add the element at location specified in the index

wdContext.nodeOrders().addElement(index, element);

nodeOrders.moveNext();

If u r problem solves please close this thread by choosing "answered" option.

regards,

ramesh

Edited by: ramesh v on Apr 2, 2008 3:21 PM

Former Member
0 Kudos

Hi,

Add rows to a table use the following code


 //To create and add element 
	  wdContext.nodeOrders().createAndAddElement();
	  int index =2;
	  IWDNodeElement element =  wdContext.nodeOrders().createElement();
	  //add the element at location specified in the index
	  wdContext.nodeOrders().addElement(index, element);

Regards

Ayyapparaj