Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net asp:DetailsView显示每页一个对象可以显示多个_Asp.net_Dataview - Fatal编程技术网

Asp.net asp:DetailsView显示每页一个对象可以显示多个

Asp.net asp:DetailsView显示每页一个对象可以显示多个,asp.net,dataview,Asp.net,Dataview,我有底部的细节视图,它在一行上显示一个细节。我可以使用什么方法来显示多个细节视图对象吗 <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px" AutoGenerateRows="False" EnableViewState="False" DataKeyNames="questionID" DataSourceID="AllQuestions" Al

我有底部的细节视图,它在一行上显示一个细节。我可以使用什么方法来显示多个细节视图对象吗

<asp:DetailsView ID="DetailsView1"  runat="server" Height="50px" Width="125px" 
        AutoGenerateRows="False"  EnableViewState="False" 
        DataKeyNames="questionID" DataSourceID="AllQuestions" AllowPaging="True">
        <Fields>
            <asp:BoundField DataField="SubjectName" HeaderText="SubjectName" 
                SortExpression="SubjectName" />
            <asp:BoundField DataField="Chapter" HeaderText="Chapter" 
                SortExpression="Chapter" />
            <asp:BoundField DataField="Section" HeaderText="Section" 
                SortExpression="Section" />
            <asp:BoundField DataField="questionID" HeaderText="questionID" 
                InsertVisible="False" ReadOnly="True" SortExpression="questionID" />
            <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
            <asp:BoundField DataField="sectionID" HeaderText="sectionID" 
                SortExpression="sectionID" />
            <asp:BoundField DataField="QuestionNo" HeaderText="QuestionNo" 
                SortExpression="QuestionNo" />
            <asp:BoundField DataField="question" HeaderText="question" 
                SortExpression="question" />
            <asp:BoundField DataField="A" HeaderText="A" SortExpression="A" />
            <asp:BoundField DataField="B" HeaderText="B" SortExpression="B" />
            <asp:BoundField DataField="C" HeaderText="C" SortExpression="C" />
            <asp:BoundField DataField="D" HeaderText="D" SortExpression="D" />
            <asp:BoundField DataField="correctAnswer" HeaderText="correctAnswer" 
                SortExpression="correctAnswer" />
            <asp:BoundField DataField="explanation" HeaderText="explanation" 
                SortExpression="explanation" />
        </Fields>
    </asp:DetailsView>


据我所知。。。。DetailsView用于单个记录。对多条记录使用GridView、Repeater或ListView。

所有这些都允许多条记录。中继器在网格视图中做什么我可以拥有与细节视图相同的布局吗