Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
How to make a specific cell Not Editable rather than entire column
posted

I have a xamTreegrid and i want to know if there's anyway to make a specific cell as Not Editable, for example, I want the first cell of the first row is editable, but the first cell of the second row is editable, please let me know if this is supported or not.

Parents
No Data
Reply
  • 7375
    Verified Answer
    Offline posted

    Hello, Haidar,

    Every cell has 'IsEnable' property which you can use to enable/disable the cell.

    Your code would be something like that:

    void XDG1_InitializeRecord(object sender, InitializeRecordEventArgs e)
    {
        var dr = e.Record as DataRecord;
        if (dr != null)
        {
            dr.Cells["SKU"].IsEnabled = false;
            dr.Cells["ProductID"].IsEnabled = true;
        }
    }

    Can also refer to this online help document for detail information.

    Regards,

Children
No Data