How to enable the GridView paging after showing 12 elements?
<p>I am a new ASP.NET developer and now I am having an issue in the system that I am working on it. I have a GridView and I already enabled the paging functionality on it. What I want now is showing 12 or 14 elements in the GridView and then use paging to show the other next 12 elements, so how to do that?</p>

<p>My ASP.NET code:</p>

<pre><code>&lt;!-- Content Goes Here! --&gt;
                                        &lt;asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
                                            DataSourceID="SqlDataSource6" CssClass="datatable"
                                            CellPadding="0" BorderWidth="0px" GridLines="None" 
                                        OnDataBinding="GridView3_DataBinding" AllowPaging="True"&gt;

                                            &lt;Columns&gt;
                                                &lt;asp:BoundField DataField="Title" HeaderText="Quiz" 
                                                    SortExpression="Title" /&gt;
                                                &lt;asp:BoundField DataField="DivisionShortcut" 
                                                    HeaderText="Division" 
                                                    SortExpression="DivisionShortcut" /&gt;
                                                &lt;asp:BoundField DataField="Total Number of Participants" 
                                                    HeaderText="Total Number of Participants" ReadOnly="True" 
                                                    SortExpression="Total Number of Participants"/&gt;
                                            &lt;/Columns&gt;

                                            &lt;RowStyle CssClass="row" /&gt;

                                            &lt;SortedAscendingCellStyle CssClass="sortasc"&gt;&lt;/SortedAscendingCellStyle&gt;
                                            &lt;SortedAscendingHeaderStyle CssClass="sortasc"&gt;&lt;/SortedAscendingHeaderStyle&gt;
                                            &lt;SortedDescendingHeaderStyle CssClass="sortdesc"&gt;&lt;/SortedDescendingHeaderStyle&gt;
                                        &lt;/asp:GridView&gt;

                                        &lt;asp:SqlDataSource ID="SqlDataSource6" runat="server" 
                                        ConnectionString="&lt;%$ ConnectionStrings:testConnectionString %&gt;" SelectCommand="SELECT     dbo.Quiz.Title, dbo.Divisions.DivisionShortcut,  COUNT(DISTINCT dbo.UserQuiz.Username) AS [Total Number of Participants]
        FROM         dbo.employee INNER JOIN
                              dbo.UserQuiz ON dbo.employee.Username = dbo.UserQuiz.Username INNER JOIN
                              dbo.Quiz ON dbo.UserQuiz.QuizID = dbo.Quiz.QuizID INNER JOIN
                              dbo.Divisions ON dbo.employee.DivisionCode = dbo.Divisions.SapCode
        GROUP BY dbo.Quiz.Title, dbo.Divisions.DivisionShortcut
        ORDER BY dbo.Quiz.Title"&gt;&lt;/asp:SqlDataSource&gt;
</code></pre>

<p><strong>So how to do that?</strong></p>
