Solved

Datagrid Row Bold / Unbold

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

17 Experts available now in Live!

Get 1:1 Help Now