I am using HeaderCheckBoxVisibility on ultragird as show above.On click on the header all the check box are checked as well as unchecked successfully, but as shown above the 3 and 4 row is disabled when I fill the gird on the bases of some logic, so when I checked the header check box the disabled row will not get effected, I Mean to say the checkbox not get unchecked for the disabled rows on the click on header check box.
Please suggest.
AfterHeaderCheckStateChanged worked for me.
Thanks
So that means there must be something else in your application that accounts for why the checkboxes are not changing. You might want to see if you are setting CheckBoxSynchronization on the column. It's possible you have it set to None and then you are changing the CheckBoxes yourself in code - likely in the Before/AfterHeaderCheckStateChanged event.
I guess it might also be possible that you are handling some other event like BeforeCellUpdate or BeforeRowUpdate and cancelling the change. Or maybe you are handling InitializeRow and setting the Value of the checkbox cell for disabled rows? In which case, you probably only want to do that the first time, so you can work around it by checking e.ReInitialize and only do it when that's false.
I followed the steps you suggested and was unable to reproduce the behavior you're describing. Specifically, in my sample the cells within the disabled row do get checked.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using winforms 20.1.114
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
WinFormsUltraGridDisablingRow.zip