Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-03-30
3
Medium Priority
?
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
apresto earned 750 total points
ID: 24019856
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
ID: 24019896
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
ID: 24020211
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

636 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