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
680
Event after unselect a column from ColumnChooser window
posted

Is there any event I can raise after select/unselect a column from ColumnChooser window?

Thank you

 

Parents
No Data
Reply
  • 12333
    posted

    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.

Children