Click here to Skip to main content
11,631,896 members (71,695 online)
Rate this: bad
Please Sign up or sign in to vote.
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:05am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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...
sarathviper at 4-Feb-13 6:41am
how to set the visible property is false or true?
naveensenagasetti at 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") %>' />
supriya chaladi at 4-Feb-13 6:53am
sarathviper at 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)

  Print Answers RSS
0 OriginalGriff 8,397
1 Sergey Alexandrovich Kryukov 8,009
2 Mika Wendelius 6,260
3 F-ES Sitecore 2,296
4 Suvendu Shekhar Giri 1,970

Advertise | Privacy | Mobile
Web02 | 2.8.150728.1 | Last Updated 4 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100