Solved

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

Posted on 2009-03-30
3
254 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 250 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

705 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