?
Solved

Datagrid Row Bold / Unbold

Posted on 2006-06-30
2
Medium Priority
?
339 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 1000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

801 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