Is there any event I can raise after select/unselect a column from ColumnChooser window?
Thank you
Hi,
Although I do not see any events specific to this operation, what if you tried the following code to identify when the columns are shown / hidden:
private void ultraGrid1_AfterColPosChanged(object sender, Infragistics.Win.UltraWinGrid.AfterColPosChangedEventArgs e) { for (int i = 0; i < this.ultraGrid1.DisplayLayout.Bands[0].Columns.Count; i++) { System.Diagnostics.Debug.WriteLine(this.ultraGrid1.DisplayLayout.Bands[0].Columns[i].Header.Caption + ":"+ this.ultraGrid1.DisplayLayout.Bands[0].Columns[i].Hidden); } }
See if this can help you to accomplish your programming goal. It seems to work for me in regards to informing me whenever columns are shown / hidden. You can iterate through the columns in this event and determine which columns are visible or hidden.
You can use the Before/AfterColPosChanged event.