Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Formatting gridview rows based on data

Thread Tools

Formatting gridview rows based on data

Not Me
Posts: n/a

It it possible to alter properties of a gridview control based on the
data it holds?

Specifically, I would like to alter colours held in the data. For's the data

Surname Forename Registered RecentContact
Smith Henry no no
Jones Wesley yes no
Adams Sarah yes yes

I would like to display records in red for those unregistered.. yellow
for those registered without recent contact.. and green for those
registered with recent contact.

Can this be done simply? or am I looking at writing my own class to
response.write the table/data info? I would like to keep the gridview
for paging/sorting.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide the Gridview Rows and Header rows in Button click VijayRama ASP .Net 2 10-12-2009 01:58 PM
dynamically creating a GridView with x rows based on database table column design Andy B ASP .Net 0 08-03-2008 11:29 AM
Gridview: formatting some rows differently from others ASP .Net 2 10-10-2007 05:51 PM
GridView formatting rows/columns question J055 ASP .Net 2 03-24-2006 09:00 AM
dynamically add new rows and save data typed in these rows to a database Arjen Hoekstra ASP .Net 0 08-02-2005 12:15 PM