Disable FlexGrid cells

Posted by: office on 2 November 2017, 7:40 am EST

    • Post Options:
    • Link

    Posted 2 November 2017, 7:40 am EST

    Hi all

    How would I go about disabling certain flexgrid cells?

    I need to disable a couple of cells in a flexgrid based on certain conditions.

    Thanks

  • Posted 3 November 2017, 4:07 am EST

    Hi,

    handle the “BeforeEdit” event and set “e.Cancel = true” for those cells.

    Hope this helps

    Wolfgang

  • Posted 3 November 2017, 4:45 am EST

    Hello,

    You can disable any cell by setting e.Cancel= true in “BeforeEdit” event. Please use the following code:

    private void _flex_BeforeEdit(object sender, RowColEventArgs e)

    {

    if(_flex[e.Row,e.Col].ToString()==“ANTON”)

    {

    e.Cancel = true;

    }

        }
    

    Hope it helps.

    Thanks,

    Mohit

  • Posted 7 November 2017, 11:49 am EST

    Thanks

    Is there any way to enable notifications on posts, like on the old forum? I didn’t look at this as I didn’t receive a notification

  • Posted 8 November 2017, 2:59 am EST

    Hi,

    The feature is not available here yet. But, the team is working on it. Would be added in near future.

    Thanks,

    Pragati

Need extra support?

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

Learn More

Forum Channels