Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1375
Event for ViewStyleBand property change
posted

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

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    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

Children