Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 23rd, 2004, 12:14 PM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datagrid with images

I am attempting to build a basic asp page with a datagrid. In the datagrid I am showing a list of computers and for each computer I want to provide a quick visual of the state of its components. For example, I have 1 column for the computer and 5 columns for various components. The component columns would show green dots for OK, red dots for a problem, and blue dots for unknown. The dots would need to be updated if the component's status changed. I have stored the machines and their statuses in a database. But I am wondering the best way to implement showing these dots. Should they be images which I would store a path to in the database and how would I bind and change the images in each row? Or is their an easier way? Thanks for any suggestions.
Jango



 
Old June 23rd, 2004, 01:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Is this an ASP page or an ASP.NET page, because it's in ASPX beginners. You could use a template column, and dynamically add the column in the ItemDataBound or ItemCreated event. Then if whatever image is desired, set it in that event. Those events occur for each row that is rendered in the data grid.

Brian
 
Old June 23rd, 2004, 02:49 PM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is an asp.NET page. I will look into the template column - thanks for the suggestion.
Jango

 
Old June 26th, 2004, 11:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

to show colored dots (text) or using image, i have to check its status & since u have a DB for that & store it, make it in a if to.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How input images to datagrid [email protected] ASP.NET 1.0 and 1.1 Basics 1 November 15th, 2006 11:13 AM
How to Handle Images in Datagrid by using c# ??? AbuBakar C# 0 December 17th, 2005 06:06 PM
Displaying Images in a DataGrid RichardOrmiston ASP.NET 1.0 and 1.1 Basics 1 December 13th, 2005 01:13 PM
Datagrid for display images [email protected] ASP.NET 1.x and 2.0 Application Design 1 January 18th, 2004 03:04 PM





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