I think your idea on creating a TextRO_Edit user control would do the trick. The field I want displayed - but not editable is not a primary key, it is just a regular field the user would like to see. They just don't want it to be edited.
Would you happen to know how to set the UIInt to use this TextRo user control in the partial class? I am using Dynamic Data Entity Framework with Visual Basic. My partial class for this table is shown below. Branch is the field I want to have displayed,
but not editable. Thanks.
GetType(CapitalAssetsMetaData))> _
Partial
Public
Class CapitalAssets
End
Class
Public
Class CapitalAssetsMetaData <ScaffoldColumn(False)>
_
Public CapitalAssetID
As
Object
<ScaffoldColumn(False)> _
Public ManageEquipmentDescription
As
Object
defyant_2004
Member
55 Points
337 Posts
Re: Show Field But Do Not Allow Editing
Jan 23, 2009 08:24 PM|LINK
I think your idea on creating a TextRO_Edit user control would do the trick. The field I want displayed - but not editable is not a primary key, it is just a regular field the user would like to see. They just don't want it to be edited.
Would you happen to know how to set the UIInt to use this TextRo user control in the partial class? I am using Dynamic Data Entity Framework with Visual Basic. My partial class for this table is shown below. Branch is the field I want to have displayed, but not editable. Thanks.
Imports
Microsoft.VisualBasicImports
System.Web.DynamicDataImports
System.ComponentModel.DataAnnotations Namespace TeamCapitalAssetsModel<MetadataType(
GetType(CapitalAssetsMetaData))> _ Partial Public Class CapitalAssets End Class Public Class CapitalAssetsMetaData <ScaffoldColumn(False)> _ Public CapitalAssetID As Object <ScaffoldColumn(False)> _ Public ManageEquipmentDescription As ObjectPublic Branch As Object
End ClassEnd
Namespace