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
2715
Non updatable grid
posted

hi!

I need to be able to add records to a grid (via the "add new" row at the bottom), but in the same time, the grids records should not be updatable.

Any idea how?

Thanks!

Parents
No Data
Reply
  • 17259
    Verified Answer
    Offline posted

    Try this: use the InitializeRow event.

    if (e.IsTemplateAddRow || e.IsAddRow)

       e.Row.Activation = Activation.AllowEdit;

    else

       e.Row.Activation = Activation.NoEdit;

     

Children
No Data