Infragistics Home

Infragistics Forums

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

Event for ViewStyleBand property change

Last post 09-05-2008 18:47 by jlitzie. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-05-2008 15:35

    • jlitzie
    • Not Ranked
    • Joined on 08-05-2008
    • Points 350

    Event for ViewStyleBand property change

    Hi,

    I was wondering what event, if any, I could use to detect changes in the ViewStyleBand property. I've got some controls on the form along with the UltraGrid that I want to enable/disable depending on the state of this property. The code that sets the property is in a separate class from the grid so I'd like to use an event if possible.

     Thanks,

    JL

    • Post Points: 20
  • 09-05-2008 17:00 In reply to

    Re: Event for ViewStyleBand property change

    Answer

    JL,

    You can use the PropertyChanged event of the grid for this.  You would just need to check the trigger of the event, such as:

    private void ultraGrid1_PropertyChanged(object sender, Infragistics.Win.PropertyChangedEventArgs e)
    {
        if ((Infragistics.Win.UltraWinGrid.PropertyIds)e.ChangeInfo.Trigger.PropId == Infragistics.Win.UltraWinGrid.PropertyIds.ViewStyleBand)
        {
            // Do things with stuff
        }
    }

    -Matt

    • Post Points: 20
  • 09-05-2008 18:47 In reply to

    • jlitzie
    • Not Ranked
    • Joined on 08-05-2008
    • Points 350

    Re: Event for ViewStyleBand property change

     Excellent. I was trying way too hard!

     

    Thanks Matt.

    • Post Points: 5
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems