C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » ASP.NET GridView »

Making The Columns Visible False in Gridview


Posted Date: 17 Sep 2009    Resource Type: Code Snippets    Category: ASP.NET GridView
Author: subbuMember Level: Silver    
Rating: 1 out of 5Points: 5



Normally In DataGrid to make a Column Visible false it is easy,just giving
Visible =false for that column in HTML.
But in Gridview We will not have that Option.

So take make
Gridviews Column Visible False

We need to Write this line of code in RowCreated Event.



protected void Grdvwname_RowCreated(object sender, GridViewRowEventArgs e)
{
e.Row.Cells[1].Visibe=false;
e.Row.Cells[2].Visibe=false;

}

What Columns You need to make visible false mention that Particular Column no.



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Making Gridview Columns Visible false  .  How to make Gridviews Column Visible False.  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Functionality in RowDatabound of Gridview Control
Previous Resource: Scrollable Gridview with fixed header
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET GridView


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use