E.cancel in BefoeRowColChange event Making problem in proplem in SelectionMode

Posted by: samo3889 on 10 June 2018, 4:53 am EST

    • Post Options:
    • Link

    Posted 10 June 2018, 4:53 am EST

    Hi all

    relate to the following issue:

    https://www.grapecity.com/en/forums/winforms-edition/gridselectionmoden-doesnt-

    please look at the following attachment .

    i want to keep e.cancel in beforeRowColchange

    there another suggestion how to solve it ?

    thanks :slight_smile:

    Saleem.

  • Posted 11 June 2018, 3:33 am EST

    Hi Saleem :slight_smile:

    There is no attachment linked to your post. However, I went through the above specified case. And, I could see that there is actually need to know your use case before I can suggest you something.

    You can also modify this sample so that I can see the issue with the last suggested approach at your end.

    C1FlexGridClassic_Selection.zip

    Best regards,

    Meenakshi

  • Posted 11 June 2018, 3:47 am EST

    hi Meenakshi :slight_smile:

    i already open issue

    https://www.grapecity.com/en/forums/winforms-edition/gridselectionmoden-doesnt-

    and it’s contain attachment

    The attached example did not work properly in my code

    i want to keep e.cancel in BeforeRowColChange to prevents call afterrowColchange in some Cases

    it’s available?

    i attach example again

    thanks

    saleem

    02739c31f9c5fbceda389818e585e1411515585114454 (3).zip

  • Posted 12 June 2018, 12:38 am EST

    Okay Saleem! In this scenario, I can only suggest you to check the selection in BeforeRowColChange event and then cancel this event if the condition satisfies. As it seems that you don’t want to cancel selection for each cell.

    Here is the modified sample, demonstrating a possible case of setting e.Cancel to true. I have shown how you can cancel selection in this event for a particular cell.

    AppModified.zip

    If it does not help you, please change this sample so that the exact scenario at your end can be reproduced at my side also. This way, I’ll be able to help you in a better way.

    Regards,

    Meenakshi

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels