Intersoft Support Center

Disable Editing in Certain Columns

WebGrid provides feature to use different edit control for the new input.

In this topic, you will learn how to disable editing in certain columns.

To disable editing in certain columns

  1. Open WebGrid Designer and click See all properties.
  2. Set AllowAddNew to Yes and AllowEdit to Yes.
  3. Go to Advanced tab. Expand RootTable and select Columns.
  4. Select CustomerID. Set EditType to NoEdit and NewRowEditType to TextBox.
  5. Run the project. In this case, WebGrid disables the editing for CustomerID column in normal row, while still allows editing for the column in new row
Previous Next