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
815
Add new row
posted

Hi

When adding a new row to a grid, using the Add new row button, what property should be set that prevents the user entering a value into a cell whose value is assigned / generated by the database, for example CustomerID ?

Thanks

Parents
No Data
Reply
  • 190
    Suggested Answer
    posted

    If you're using the mvc wrapper like I am then this will work

    features.Updating().ColumnSettings(settings =>

                    {

                        settings.ColumnSetting().ColumnKey("CustomerID").ReadOnly(true);

    });

     

Children