How Do I set a single Cell on the flex grid to Allow editing

Posted by: groads2 on 27 September 2017, 7:45 pm EST

  • Posted 27 September 2017, 7:45 pm EST

    How Do I set a single Cell on the flex grid to Allow editing while disallowing other cells from being edited.

  • Posted 27 September 2017, 7:45 pm EST

    Hello,

    You need to capture BeforeEdit event and set e.Cancel to false for the cells you want to edit at runtime else set all the cells’s e.Cancel property to true as shown below:-

    [csharp] void c1FlexGrid1_BeforeEdit(object sender, C1.Win.C1FlexGrid.RowColEventArgs e)

    {

    if (e.Col == 1 && e.Row == 1)

    {

    e.Cancel = false;

    }

    else

    e.Cancel = true;

    }[/csharp]

    Hope it helps.

    Thanks,

    Reeva Dhingra

  • Posted 4 January 2018, 3:54 pm EST

    This works for checkbox but doesn’t appear to work if I have a dropdown in a cell with a datamap. How can this be done with a dropdown in a cell?

Need extra support?

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

Learn More

Forum Channels