• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

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

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
rpm962
Asked:
rpm962
  • 2
1 Solution
 
aprestoCommented:
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
 
rpm962Author Commented:
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
 
aprestoCommented:
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

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now