Solved

Datagrid Row Bold / Unbold

Posted on 2006-06-30
2
338 Views
Last Modified: 2008-03-17
I'm making Email Inbox,

How can make all the Old mails (read mails) unbold and
all the new mails (unread mails) Bold  in Datagrid in ASP.NET like yahoo, hotmail inbox.

Kindly help me to solve it.
Rgds,
Sohrab
0
Comment
Question by:sohrabus
[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
2 Comments
 
LVL 19

Accepted Solution

by:
DreamMaster earned 250 total points
ID: 17016851
Public Sub MyGrid_ItemDataBound(sender As Object,e As DataGridItemEventArgs) Handles MyGrid.ItemDataBound
  If e.Item.ItemType==ListItemType.Item OrElse e.Item.ItemType==ListItemType.AlternatingItem Then
    If [newEmail] Then
      e.Item.Font.Bold = True
    End If
  End If
End Sub

Should do the trick...how you check whether the email is a newmail or an old one is up to you..

Regards,
Max.
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 17070840
Glad to have been helpfull,

Regards,
Max.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

695 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