Hi,
I'm using a WinCombo to show the payment methods that can be used for an order (credit card, money transfer, cheque, etc.). For our partners we have stored their available payment methods in database so I want to disable the payment methods that are not applicable for them. As I found in another posting this can be easily done by setting the Activation property of the Row to Activation.Disabled. This also works nearly perfectly fine, I cannot select disabled payment methods with the mouse but I still can use the cursor keys on the keyboard and select payment methods that are disabled. Do I have to set any other properties to prevent that or handle some events?
Thanks in advance, Wolfgang
Hi Wolfgang,
If you are able to select disabled rows in the Combo, then something is wrong. I tried this out and it works fine for me, though. I am not able to select a disable row via the mouse or the keyboard, whether the combo is dropped down or not.
I have attached my sample project here so you can see if you get the same results. If you do, then something is wrong in your app. If you don't, then this must be a bug in whatever version of the controls are you using.
Hi Mike,
thanks for your instant reply and your sample project. I've downloaded it and it works both with 10.3 and 11.1 as it is intended to work. What I've experienced is that if I replace 'Grape' with 'Apple' in the InitializeRow event handler (this is the first row in the combo which is selected on load if I move down with keyboard and up again the 'Apple' row is selectable although the Activation property is Disabled.
I've modified your project so that it comes closer to my real project where I'm using data binding with a binding source and there it is also possible to select the disabled rows by keyboard. I've attached it and it would be great if you could have a look to it. The relation to the Order class is not required and if you comment out lines 22 & 23 in Form1.cs it doesn't change anything in the behavior of the WinCombo. I'll start 3 weeks holiday from tomorrow so there is plenty of time :D
Regards, Wolfgang
The data source does not make any difference, but I do see the problem now if I disable the first item on the list, or, as in your sample, I disable all but one item.
Infragistics Developer Support is going to open a case for you and write this up for developer review and you should hear from them shortly.