When page enabled gridview, problems with display
<p>I have the following gridview</p>

<pre><code>&lt;asp:GridView ID="importErrors" runat="server" AutoGenerateColumns="False" 
                DataSourceID="SqlDataSource_Errors" OnRowDataBound="gvErrors_CrossSale" PersistedSelection="True"                   
                AllowSorting="True" PageSize="3" AllowPaging="True"&gt;
                &lt;Columns&gt;
                    &lt;asp:BoundField DataField="ccId" HeaderText="ccId" ReadOnly="True" 
                        SortExpression="ccId" &gt;
                    &lt;HeaderStyle ForeColor="#FF0066" /&gt;
                    &lt;ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
                    &lt;/asp:BoundField&gt;
                    &lt;asp:BoundField DataField="custId" HeaderText=" ID " ReadOnly="True"
                        SortExpression="custId"  &gt;
                    &lt;HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
                    &lt;ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
                    &lt;/asp:BoundField&gt;
                    &lt;asp:BoundField DataField="idCampaign" HeaderText="Кампања ID" ReadOnly="True" 
                        SortExpression="idCampaign" &gt;
                    &lt;HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
                    &lt;ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
                    &lt;/asp:BoundField&gt;
                    &lt;asp:CheckBoxField DataField="Kontaktiran" HeaderText="Контактиран" 
                        ReadOnly="True" SortExpression="Kontaktiran" &gt;
                    &lt;ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
                    &lt;/asp:CheckBoxField&gt;
                    &lt;asp:BoundField DataField="datumKontaktiran" HeaderText="Датум" 
                        ReadOnly="True" SortExpression="datumKontaktiran" 
                        DataFormatString="{0:d}" /&gt;
                    &lt;asp:BoundField DataField="idKomentar" HeaderText="Коментар ID" ReadOnly="True" 
                        SortExpression="idKomentar" &gt;
                    &lt;ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
                    &lt;/asp:BoundField&gt;
                    &lt;asp:BoundField DataField="Zabeleska" HeaderText="Забелешка" ReadOnly="True" 
                        SortExpression="Zabeleska" &gt;
                    &lt;ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
                    &lt;/asp:BoundField&gt;
                    &lt;asp:BoundField DataField="custFilijala" HeaderText="Филијала" 
                        ReadOnly="True" SortExpression="custFilijala" &gt;
                    &lt;ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
                    &lt;/asp:BoundField&gt;
                &lt;/Columns&gt;
            &lt;/asp:GridView&gt;
            &lt;asp:SqlDataSource ID="SqlDataSource_Errors" runat="server" 
                ConnectionString="&lt;%$ ConnectionStrings:CrossSaleConnectionString %&gt;" 
                SelectCommand="sp_ImportErrors" SelectCommandType="StoredProcedure"&gt;
            &lt;/asp:SqlDataSource&gt;
</code></pre>

<p>which is page enabled and the following event handler
Protected Sub gvErrors_CrossSale(ByVal sender As Object, ByVal e As GridViewRowEventArgs)</p>

<pre><code>    If e.Row.Cells(1).Text.Equals("-1") Then
        e.Row.Cells(1).ForeColor = Drawing.Color.Red
    End If
    If e.Row.Cells(4).Text.Equals("01/01/1900") Then
        e.Row.Cells(4).ForeColor = Drawing.Color.Red
    End If
    Dim csObj As New CrossSaleMethods()
    If e.Row.Cells(5).Text.Equals("-1") Or csObj.ExistsInKomentari(e.Row.Cells(5).Text) Then
        e.Row.Cells(5).ForeColor = Drawing.Color.Red
    End If
End Sub
</code></pre>

<p>The fail is following: "Specified argument was out of the range of valid values.
Parameter name: index" when i set the gridview as pagged enabled, otherwise i don't have this problem?</p>

<p>Any suggestions?</p>
