Solved

Datagrid Row Bold / Unbold

Posted on 2006-06-30
2
331 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

19 Experts available now in Live!

Get 1:1 Help Now