Results 1 to 3 of 3

Thread: RESOVED!!! How can I make a GRID ROW stand out?

  1. #1

    Thread Starter
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381

    Question RESOVED!!! How can I make a GRID ROW stand out?

    If I have several records on a GRID, how can I make a row or several rows standout based on a certain criteria? For example (please see attachment), if my [RA AMOUNT] is less than [RETURNS PROCESSED] (this is the first row), I want to make that row have a different background color OR make the [RA NUMBER] red instead of black.

    Is this possible?

    Thanks
    Attached Images Attached Images  
    Last edited by ARPRINCE; Jun 14th, 2004 at 10:44 AM.

  2. #2

    Thread Starter
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381
    I got this link from DARRELL (asp.net forum) and was able to solve my problem (see photo attachment).

    http://aspnet.4guysfromrolla.com/articles/072603-1.aspx
    Attached Images Attached Images  

  3. #3
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276
    This may be easier. In page load after DataBind:

    VB Code:
    1. Dim dgi As DataGridItem
    2.  
    3. For Each dgi In DataGrid1.Items
    4.     If System.Convert.ToDouble(dgi.Cells(7).Text) < System.Convert.ToDouble(dgi.Cells(8).Text) Then
    5.         dgi.Cells(7).ForeColor = Color.Red
    6.     End If
    7. Next

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