Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 17th, 2008, 12:58 PM
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default GridView - Skipping a Row

Is there some way to skip the current row in a GridView if some certain condition is met with that row's data?

I'm trying to do this in the _RowCreated method but I'm unable to figure out the syntax. The GridView is being populated by a set of XML results, so I'm not sure of a way to do it by manipulating that data... it might be easier if I could just skip the row in question after the data is bound to the control.

  #2 (permalink)  
Old July 18th, 2008, 10:02 AM
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found a few similar questions on Google and a common suggestion appears to be that the data should be modified before it is bound to the control. I ended up manipulating the XmlNodes on the data source before it was ever passed over to the GridView. It took some trial and error but that did the trick.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview with only one row mallikalapati ASP.NET 2.0 Professional 5 March 5th, 2008 09:27 AM
Gridview with only one row mallikalapati ASP.NET 2.0 Professional 0 February 25th, 2008 06:46 AM
Getting a GridView Row to highlight gcm_uk ASP.NET 2.0 Basics 0 May 1st, 2007 05:55 AM
Getting Data from selected row in gridview JoinTTT ASP.NET 2.0 Professional 3 April 17th, 2007 02:14 AM
GridView and Row Index itwebguy .NET Framework 2.0 1 October 16th, 2006 04:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.