Solved

Datagrid Row Bold / Unbold

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

Industry Leaders: 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

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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.…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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