Home > How To > How To Change Gridview Header Text At Runtime Using Vb.net

How To Change Gridview Header Text At Runtime Using Vb.net

Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed I tried the same but am not getting. Optional Password I have read and agree to the Terms of Service and Privacy Policy Please subscribe me to the CodeProject newsletters Submit your solution! have a peek here

Linux questions C# questions ASP.NET questions fabric questions C++ questions discussionsforums All Message Boards... Optional Password I have read and agree to the Terms of Service and Privacy Policy Please subscribe me to the CodeProject newsletters Submit your solution! Are spectators born the same way as beholders? Is it possible to send all nuclear waste on Earth to the Sun? http://stackoverflow.com/questions/13013241/change-header-text-of-columns-in-a-gridview

My CategoriesMy Categories Select Category .Net C#.Net CSS General html JQuery MSSQL Theory VB.Net Web.Config LinnaryoneDELETE Table Vs TRUNCATE TableSelecting Top RecordsSelecting Special CharactersRestoring DatabaseCapability Maturity Model Integration(CMMI Level 5).Net C#.Net But i assumed that OP cannot or don't want to modify the sql. All Rights Reserved. Hitchhiker's Guide to Getting Help at VB Forums.

can u tell me about datasource. August 23, 2016 at 4:40 AM Post a Comment Newer Post Older Post Home Subscribe to: Post Comments (Atom) Tools Useful Stuff Recent Posts Loading... Output integers in negative order, increase the maximum integer everytime Incremental Quine Why do we keep smoking in distant future? Must be non-negative and less than the size of the collection.

What is the AntiForgeryToken and why do I need it? - ASP.NET MVC 101 series This article is fromour ASP.NET MVC 101 Tutorial Series When we get started with projects, often This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL) Top Experts Last 24hrsThis month Dave Kreskowiak 220 OriginalGriff 173 Kornfeld Theorems demoted back to conjectures Difference between "raise" and "lift" How to tell if I'm actually in a symlink location from command line? http://www.vbforums.com/showthread.php?624644-Change-GridView-Header-Text-Programatically protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.Header) { e.Row.Cells[0].Text = "Date"; } } or you can set AutogenerateColumns to false and add the columns declaratively on aspx:

share|improve this answer answered Oct 22 '12 at 14:17 Ram Singh 3,4091967125 thanks for the link. –Sylca Oct 22 '12 at 14:43 @Sylca my pleasure to help Now I will explain another article relating to Gridview. It's FREE! General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ

Do you need your password? Reply ecbruck All-Star 88260 Points 9668 Posts Re: change header text of col in gridview at runtime Oct 31, 2007 01:01 PM|ecbruck|LINK Can you submit the code for yourGridView? Do I need a hard shell to ski in sunny weather conditions? If for some unique scenario, ELMAH does n...

where is the download link?.. navigate here Solution 2 Accept Solution Reject Solution HiPlease try it:protected void Button1_Click(object sender, EventArgs e) { if(GridView1.Rows.Count>0) { GridView1.HeaderRow.Cells[0].Text="something"; }}Yours Farhad. Parameter name: index when trying to use Code: gridUserList.Columns(0).HeaderText = "User Id" Reply With Quote Aug 15th, 2010,05:40 AM #4 gep13 View Profile View Forum Posts Visit Homepage ASP.NET Moderator Join Enter your email address: Tags Asp.net JQuery General C#.Net VB.NET Code Snippets Javascript SQL Server Gridview asp.net mvc JQuery Plugins c# Errors Interview Questions Fileupload Ajax mvc DropdownList AngularJS validations

Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. ASP.NET Tutorials (updated Feb 1st 2009) ASP.NET FAQs (updated July 17th 2011) Free Stuff: WebsiteSpark|DreamSpark|BizSpark|eBooks Learning Resources: MSDN|LearnVisualStudio|TrainingSpot|ScottGu's Blog|ASP.Net Starter Kits|Regex|RegExLib Useful Tools: XPath Builder|UltraMon|RegExBuddy|CopySourceAsHtml|TracExplorer|SQLyog|Chart Controls for .Net|SharePoint Designer|CodeRush Express Coding March 14, 2013 at 3:48 AM Srikanth Surakala said... Check This Out Remember to rate posts that help.

June 18, 2012 at 4:21 AM Anonymous said... Linnaryone Web Technology Search: HomeAbout UsContact Us Posts Comments .Net General MSSQL Theory VB.Net Web.Config html C#.Net CSS JQuery ← Quick and Free MP3 DownloadSites Adding Drop Downl List & Textbox The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.

Thanks, it work for me.

In a previous post, we saw how to do an Inner join in C#... Let us first see how the GridView is declared Now write the following code in the RowDataBound event to change the HeaderText of the 3rd column. Let's work to help developers, not make them feel stupid. Let's work to help developers, not make them feel stupid.

Is there any railroad in Antarctica? Select AutoFill" style="WIDTH: 50px; BACKGROUND-COLOR: #ffffa0" name=gv1$ctl03$TextBox1> http://analysedesgeeks.com/how-to/how-to-change-header-text-of-gridview-in-runtime.html Hi,I created a custom panel, it contains gridview.In design time grid is not displaying but run time its working fine.

Sql Server Tutorials Loading... .NET Tutorials Loading... more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Note that column index starts from zero. Searching here to see when, where, and how I ought to access the header. –Zarepheth Aug 4 '13 at 4:51 add a comment| Your Answer draft saved draft discarded Sign