Results 1 to 3 of 3

Thread: rollover grid

  1. #1

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492

    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

  2. #2
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    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

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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
  •  



Click Here to Expand Forum to Full Width