Wrox Programmer Forums
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
Old June 21st, 2006, 01:04 PM
Registered User
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Highlighting multiple rows

On the C# side, I've created an datatable that will read a multi-dimensional array. Each row has a boolean value at the moment that suggests whether it should be highlighted or not.

What I don't know how to do is to have duplicate rows automatically hightlighted on the datagrid.

Can anyone help?

Old June 21st, 2006, 11:12 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

Try putting a flag in the resultset(for the grid) that indicates whether or not to hightlight the row. You can set the visible property to false for that column in the grid(in the page_load event). Then in the RowDataBound event of the grid, check the value, and set the bgcolor of the row accordingly.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining Multiple rows LateBinding SQL Server 2000 0 February 23rd, 2007 05:23 AM
retrieving multiple rows from table blackbeauty SQL Language 1 August 8th, 2005 03:55 AM
Copying Multiple Rows raj_phoenix Excel VBA 3 May 6th, 2005 03:58 AM
print multiple times..multiple rows... abhit_kumar JSP Basics 3 January 18th, 2005 07:11 PM
Updating multiple Rows from multiple fields in ASP vdm_nana SQL Server ASP 0 April 1st, 2004 04:26 AM

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