|
-
Oct 1st, 2004, 07:12 AM
#1
Thread Starter
Banned
rollover grid
I want to be able to do two things:
1) rollover effect on a grid ? I want to be able to roll over rows on a grid and it changes color. How do I accomplish this
2) based on some SQL pulling out data from a database I want to change the back color of a grid row for certain data.
For instance I have a database that stores issues. For open issues I want it to make the background color of the row light blue. For closed green and for overdue a light red.
How can I accomplish this. If anyone has examples please post them!
Thanks,
Jon
-
Oct 1st, 2004, 07:59 AM
#2
This depends on what you are using.
You can it easily uses XSLT sheets using either the CHOICE tag thingy (I have no damn idea what things are called in .NET) or assigning a VB class to the XSLT sheet, white works out the back color for you.
WOof
-
Oct 6th, 2004, 11:25 PM
#3
PowerPoster
You want to look at customizing the row color in the "onitembound" (or something close to that) event of the grid. In that event, the "e" argument passes everything about that row, which you can do whatever you need.
A great place to look for datagrid info is the famous, yet highly disturbing pink site (www.datagridgirl.com)
And, as she says on her site, the book on this page is the end all be all of datagrid working. Get it, read it, it is the best:
http://www.4guysfromrolla.com/webtech/chapters/ASPDWC/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|