Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have one gridview with the columns itemname,category,date and created by,Additionally i have Edit,update and Purchase buttons.if i click purchase button ,new column(completed by) should be added in gridview.It is Possible..advance thanks...
Posted

 
Share this answer
 
hi, follow the below steps..

You do one thing by default you added that column in grid it self , but on visible property you set that as false.
Now comes to your requirement Whenever you click the button Purchase at that time you set visible is true...


I think this might be helpfull to you...
 
Share this answer
 
Comments
sarathtamil 4-Feb-13 6:41am    
how to set the visible property is false or true?
Naveen.Sanagasetti 4-Feb-13 6:49am    
in your source code itself you follow this code..
<asp:Label ID="lblMSCE_SE_Code" runat="server" Visible="false" Text='<%# DataBinder.Eval("your object") %>' />
raj ch 4-Feb-13 6:53am    
grdSample.Columns(0).Visible=True
grdSample.Columns("ID").Visible=True
sarathtamil 4-Feb-13 7:00am    
tahnks friend...

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