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
Add a column to a datagrid when user click on a button
Moderator: General Moderators
Re: Add a column to a datagrid when user click on a button
Moving to the "Javascript" forum.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: Add a column to a datagrid when user click on a button
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
Hope you get what Im saying.
Regards.
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
Regards.