views:

290

answers:

1

In Visual Studio I have set up a DetailsView and an ObjectDataSource which connects with 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 am not sure how so Visual Studio can automatically show me all the columns/fields so I can start modifying it instead of typing in each column manually.

Any ideas?

+1  A: 

If you set AutoGenerateRows="False" then the tags for your bound columns have to be added manually.

cmsjr