Current filter:
                                You should refresh the page.
                                  • Hello!
                                    There is the RepositoryItemToggleSwitch in the gridView, and two column use this item.
                                    I use the toggled event of the RepositoryItemToggleSwitch.
                                    How to understand, what column fires this event?

                                    Thank you!

                                1 Solution

                                Creation Date Importance Sort by

                                You can use the Tag property to associate a column with a repository. Then handle the Toggled event in the following manner:

                                private void ToggleSwitch_Toggled(object sender, EventArgs e) { ToggleSwitch toggleSwitch = sender as ToggleSwitch; if(toggleSwitch.Properties.Tag == yourColumn ) { //your code } else { //your code } }

                                Please test this and let me know your results.

                                • Alexander (Sanches) Kotelnikov 08.13.2019

                                  Thank you! I'll use your method.

                                • Maxim L (DevExpress Support) 08.14.2019

                                  You are always welcome, Alexander.
                                  Should you have any further questions feel free to contact us.