CtrlList - selectionchange
-
Hi, I have a necessary small code in OnSelectionChange() for ListCtrl. The code is needy for tests row(s) in ListCtrl - switch on/off a few controls. These tests must be doing automatically after what all selected rows are selected. If I selected 20 rows in ListCtrl then method OnSelectionChange() is running 20 times. I don't need this. Does exists some way so I can call OnSelectionChange() only once? Is possible handled procedure for selection of rows? When the rows' marking is done, which function is called? - maybe I could puts tests in there... thx for help...
-
Hi, I have a necessary small code in OnSelectionChange() for ListCtrl. The code is needy for tests row(s) in ListCtrl - switch on/off a few controls. These tests must be doing automatically after what all selected rows are selected. If I selected 20 rows in ListCtrl then method OnSelectionChange() is running 20 times. I don't need this. Does exists some way so I can call OnSelectionChange() only once? Is possible handled procedure for selection of rows? When the rows' marking is done, which function is called? - maybe I could puts tests in there... thx for help...
OnSelectionChange() will be get called but you can return without doing anything if row selection count in more than 1.
-@SuDhIrKuMaR@-
-
OnSelectionChange() will be get called but you can return without doing anything if row selection count in more than 1.
-@SuDhIrKuMaR@-
However, I need checks selected row(s) and depending on selected row(s) enable/disable a couple buttons at form. Does exits some function that is calling after markings row(s)? these row(s) user selected… for example: ListCtrl has many rows. User marks 15 rows (by mouse/keyboard) and I need checks these rows one by one. After this, I enable/disable a few of buttons depending on selected rows…