Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,
I am trying to create a Repeater Template User Control i.e. a rectangular border contains a row of UIElements Like TextBox, ComboBox etc and then I'm automatically adding a + button at the end of the Row. On + button Click I want to add the Same duplicate row below it.

This is the Syntax making use of User Control:

XML
<RepeaterTemplate>
 <RepeaterTemplateItem>
  <TextBox />
  <ComboBox />
 </RepeaterTemplateItem>
</RepeaterTemplate>


I can't add the same row again as it gives error "Element is already child of other element".
If I duplicate the row using the memberWiseClone(), still on adding the duplicate row I'm getting the same error. May be bceause of non-null value of Parent property in the cloned duplicate row.

I don't know how to get this functionality working. Please HELP.

Thanks,
GK Prajapati
Posted
Updated 12-Jan-14 6:50am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900