Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
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 4 Feb '13 - 0:05


2 solutions

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...
  Permalink  
Comments
sarathviper - 4 Feb '13 - 6:41
how to set the visible property is false or true?
naveensenagasetti - 4 Feb '13 - 6:49
in your source code itself you follow this code.. <asp:Label ID="lblMSCE_SE_Code" runat="server" Visible="false" Text='<%# DataBinder.Eval("your object") %>' />
supriya chaladi - 4 Feb '13 - 6:53
grdSample.Columns(0).Visible=True grdSample.Columns("ID").Visible=True
sarathviper - 4 Feb '13 - 7:00
tahnks friend...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 449
1 Arun Vasu 253
2 OriginalGriff 210
3 CPallini 163
4 Aarti Meswania 158
0 Sergey Alexandrovich Kryukov 10,129
1 OriginalGriff 7,749
2 CPallini 4,181
3 Rohan Leuva 3,482
4 Maciej Los 2,999


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 4 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid