Click here to Skip to main content
15,878,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a button "btnExtract". By clicking btnExtract a gridview "gvPrices" and button "btnAddSub" will be visible. The gridview has only 5 columns(5 columns visible and 40 columns not visible) on click of the button "btnExtract". By clicking the btnAddSub button, a check box will be visible which has 45 items(the columns of the grid view 5+40) in the check box. By selecting the check box, i need the selected item to be displayed in the gridview. I need a jquery to add the column to the grid with autopost back set to false for the check box.

Please provide a jquery for the check box selected index to add the columns to the gridview.

Thanks....
Posted
Comments
Ganesh KP 22-Sep-13 2:42am    
Hi Komail, I have a small doubt here in u r question, You want to add a new column to asp.net grid control right? and also please explain your question clearly, it is little confusing.
komaliks 22-Sep-13 2:54am    
The grid has a total of 45 columns actually. but only 5 columns will be visible on clicking the button. I have another button , by clicking on this button a check box will be displayed which has the list of all the columns of the grid i.e 45. by checking the checkbox the columns in the gridview should be made visible. for this i need jquery. ui.e. by selecting the check box items(the autopost is set 2 false), the grid should display the columns.
komaliks 22-Sep-13 3:06am    
Hi Ganesh, Please let me know if I am clear this time.

1 solution

Hi Komali, as far as I understood your question, I hope this might helps you
http://forums.asp.net/t/1117655.aspx[^]

Please feel free to post your queries here.

Thanks
Ganesh
 
Share this answer
 

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