Automatic creation of bound columns / fields for the DetailsView element

In Visual Studio, I set up a DetailsView and an ObjectDataSource that connects to my BLL.

<asp:DetailsView runat="server" ID="UserProfileview" DataSourceID="UserData" AutoGenerateRows="False">

      

<asp:ObjectDataSource ID="UserData" runat="server" TypeName="UoM.Business.Core.UserAccount" SelectMethod="Read">
<SelectParameters>
    <asp:QueryStringParameter QueryStringField="id" Direction="input" Type="Int32" Name="Id" DefaultValue="" />
</SelectParameters>

      

I'm not sure how Visual Studio can show me all the columns / fields automatically, so I can start modifying it rather than typing in each column manually.

Any ideas?

0


source to share


1 answer


If you set AutoGenerateRows="False"

, then tags for related columns must be added manually.



+1


source







All Articles