Intersoft WebGrid Documentation
How-to: Disable Editing in certain columns
See Also Send comments on this topic.

Glossary Item Box

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.NET 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

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.