Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Highlight multiple checked rows ....

Last post 07-07-2008 14:53 by [Infragistics] Mike Saltzman. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-03-2008 14:54

    • Rashmi_W
    • Not Ranked
    • Joined on 06-30-2008
    • Points 105

    Highlight multiple checked rows ....

    hello,

     I have an unbound column with Checkboxes on a wingrid. What i want it when a checked box is checked in a particular row, the corresponding row should be Highlighted.This should also happen if multiple rows checked.

    I have my Selection property to Extended Select, what else should i do ???]

     

    -- Rashmi

    • Post Points: 20
  • 07-03-2008 16:35 In reply to

    • somay
    • Top 50 Contributor
    • Joined on 12-10-2007
    • Virginia
    • Points 1,040

    Re: Highlight multiple checked rows ....

    In CellChange event use this code:

    If e.Cell.Column.Header.Caption = "<Your unbound column caption should come here>" Then

                     If e.Cell.Text = True Then

                                  e.Cell.Row.Appearance.BackColor = Drawing.Color.Yellow <or whatever color you want for highlighting>

                      End If

    End If

    SoMaY
    -----------------
    A fundamental rule in technology says that whatever can be done will be done.
    • Post Points: 20
  • 07-07-2008 14:53 In reply to

    Re: Highlight multiple checked rows ....

    Answer

    It might be better to do this in the InitializeRow event instead of, or in addition to, CellChange. That way any existing rows that are already checked will be highlighted. 

    Mike Saltzman
    R&D Engineer
    Infragistics, Inc.
    • Post Points: 5
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems