Click here to Skip to main content
Rate this: bad
good
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
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 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
   
grdSample.Columns(0).Visible=True
grdSample.Columns("ID").Visible=True
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 Gihan Liyanage 392
1 ClimerChinna 247
2 Sergey Alexandrovich Kryukov 225
3 vikinghunter 176
4 OriginalGriff 161
0 Sergey Alexandrovich Kryukov 8,373
1 OriginalGriff 7,112
2 CPallini 2,598
3 Richard MacCutchan 2,025
4 Abhinav S 1,788


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