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
165
How to make only first row editable in xamdatagrid?
posted

I have requirement where all records(rows) needs to be loaded in non editable mode

but the first row. How do i do that?

thnx in advance.

  • 138253
    Offline posted

    Hello keinanj,

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

    If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.

  • 138253
    Offline posted

    Hello keinanj,

    Thank you for your post. I have been looking through it and one possible way of achieving your goal is to add the following code in EditModeStarting event of your xamDatGrid, which will check which is the selected row and if it is not the first one, the event will be canceled.

    if(xamDataGrid1.ActiveRecord.Index != 0)
    e.Cancel = true;

    If you have any further questions on this matter do not hesitate to ask.