Click here to Skip to main content
12,635,441 members (25,796 online)
Rate this:
 
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 1:05am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Rate this: bad
 
good
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...
  Permalink  
Comments
sarathviper 4-Feb-13 6:41am
   
how to set the visible property is false or true?
naveensenagasetti 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 4-Feb-13 6:53am
   
grdSample.Columns(0).Visible=True
grdSample.Columns("ID").Visible=True
sarathviper 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 4 Feb 2013
Copyright © CodeProject, 1999-2016
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