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
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
Excellent. I was trying way too hard!
Thanks Matt.