cancel
Showing results for 
Search instead for 
Did you mean: 

Add rows dynamically in a table

Former Member
0 Kudos

Hi All,

In my application, firstly I have to enter data in the first row. Then I have to make the next row editable and enter data in it and so on.

How to make next row editable ?

Thanks,

Nikhil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

refer the following thread

Edited by: Abhilasha Dahare on Sep 19, 2008 10:33 AM

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Insert a button and in action of it's action add elements to the node bound to Table UI Element.

Like

wdContext.node<TableNode>().addElement(wdContext.create<TableNode>Element());

Regards

LN

Former Member
0 Kudos

Hi,

Create a button Add Rows and on action of button write following code....

Say you have bound "tblnode" to table and your view name is tblview then....

IPrivatetblview.Itblenodeelement ele = wdcontext.createtblenodeelement();

wdcontext.nodetblnode.addelement(ele);

Regards

Prajakta

Former Member
0 Kudos

Hi,

initially add one row to table in DoInit() method,like this,

IPrivateDialogView.ITargetNode node = wdContext.nodeTarget();

IPrivateDialogView.ITargetElement element = node.createTargetElement();

node.addElement(element );

and when ever the last column of the row of the table is edited ,

define a eventHandler for that column and do the population of next row like

IPrivateDialogView.ITargetNode node = wdContext.nodeTarget();

IPrivateDialogView.ITargetElement element = node.createTargetElement();

node.addElement(element );

hope you got.

Regards,

ramesh