Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
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 May 4th, 2006, 09:21 AM
jgd jgd is offline
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jgd
Default DataGrid row back color related to datalist id's

Hello,
Thanks for any help in advance! I am writing an album proofing application with asp.net 2.0. I have a photo listing on the left with an "add" button column which adds images to a datalist on the right. After the add button is clicked I turn the row blue to indicate that the image was added to the preview datalist on the right by using e.Item.BackColor = Drawing.System.AliceBlue. However, this highlight needs to stick throughout the building of the album, including page refresh. My idea was to check the datakeys value of the datalist and then turn any matching rows in the datagrid blue, each time the datalist is bound. This will work because the datakey fields used are the same. My problems is the code to check the values in the datalist and then making the rows blue in the datagrid. Any help or suggestions would be very appreciated. I have code samples of what I have so far and I can post them if anyone would like to see what I have so far....

Joseph
wdweb.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Datalist Row Color rstelma ASP.NET 1.0 and 1.1 Professional 0 January 14th, 2008 08:44 PM
back color of cell of datagrid [email protected] VB.NET 1 November 18th, 2006 03:28 AM
how can i change row color in datagrid? berzegerol VS.NET 2002/2003 3 October 31st, 2006 09:08 AM
datagrid row color change berzegerol Visual Studio 2005 0 October 18th, 2006 06:33 AM
changing datagrid row color msrnivas Classic ASP Components 4 August 5th, 2004 10:58 PM





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