3
Answers

adding panel dynamically on button click

hadoop hadoop

hadoop hadoop

9y
500
1
I've a panel "txn_panel" which contains:
one label "lbl_particular", 3 textboxes txt_quantity, txt_rate, txt_amount.
When the Add button is clicked I want to add this panel dynamically i.e.
first time there will be only one label and three textboxes. On clicking the Add button the label and the textboxes should be added vertically. It should go for ten times. How can I do that?
Answers (3)
0
Hemant Srivastava

Hemant Srivastava

NA 9k 2.8m 11y
Jagged arrays are faster and have different syntax.
They are faster because they use the "newarr", vector IL calls internally.
0
Vulpes

Vulpes

NA 98.3k 1.5m 11y
Even if the rows have the same length, a jagged array is sometimes preferable to a rectangular array because it's easy to extract a whole row and pass it to another method, say, for further processing.

With a rectangular array, you have to create a single dimensional array and copy elements to it for the row you're interested in.