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
- Open WebGrid.NET Designer and click See all properties.
- Set AllowAddNew to Yes and AllowEdit to Yes.
- Go to Advanced tab. Expand RootTable and select Columns.
- Select CustomerID. Set EditType to NoEdit and NewRowEditType to TextBox.
- 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
Other Resources
Walkthrough Topics
How-to Topics