Solved

How do I change font properties for the high value returned from each column in a datalist?

Posted on 2009-03-30
3
246 Views
Last Modified: 2013-11-07
I would like to display the high value in each column of a datalist in bold.

Example:

Employee    hours      sales
emp1           6              <b>1</b>
emp2          <b>7</b>     0

I assume I achieve this in itemdatabound, but I'm stuck.

Thanks
0
Comment
Question by:rpm962
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
apresto earned 250 total points
Comment Utility
Ok, to do it in your ITemDatabound event, you will first need to know which column has the greatest value, you can do this by looping the values and storing the index. Then looping again and when the index you saved has been met, you can make that column bold?
Does this sound like a method you could implement?
0
 

Author Comment

by:rpm962
Comment Utility
Thanks for the prompt response.  I think I can handle that, yeah.  Is achieving this in the ItemDatabound event the best way to go about it?
0
 
LVL 23

Expert Comment

by:apresto
Comment Utility
i would say so yes because you are formatting before the data has even been bound, its better than actually looping the table once it has been rendered
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now