Page 1 of 1

Add a column to a datagrid when user click on a button

Posted: Tue Oct 04, 2011 7:45 am
by ishakya
Hi all,
I need to add a column to a datagrid when user click on a button.
I can add a row to a datagrid when clicks on a button.
[text]
NAME VALUE VALUE
TSH 123
ABC 123
[/text]
When user clicks ADD Button,I need to add another column Same as a value to enter repeated values.I'm doing this to record earlier values.
I hope everyone got the idea.
Thanks all

Re: Add a column to a datagrid when user click on a button

Posted: Tue Oct 04, 2011 4:35 pm
by pickle
Moving to the "Javascript" forum.

Re: Add a column to a datagrid when user click on a button

Posted: Fri Nov 04, 2011 6:18 am
by EnDee321
Hi,
You may use a dynamic grid. When you generate the grid, maintain a variable for the number of columns. When you click the button, increase the variable value and regenerate the grid.
Sorry I dnt have facilities to post a sample code as Im in office :D Hope you get what Im saying.

Regards.