You must Sign In to post a response.
  • Category: ASP.NET

    Grid View page index changing problem in asp.net ....... verry urgent .. please help me...

    grid view page index changing problem.
    i have check box in grid row.
    check box - checked cancel in page index change.
    please help me
    verrry urgent.
    thanks advance.


    Protected Sub Grid1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles Grid1.PageIndexChanging

    Grid1.PageIndex = e.NewPageIndex
    GV.PageIndex = e.NewPageIndex

    If Session("sort") = "sorted" Then
    sortedGrid(dvs)
    Else
    RefreshGrid()
    End If

    End Sub




    <asp:GridView ID="Grid1" HorizontalAlign="Center" CssClass="tableView" BackImageUrl="Images/left2.JPG"
    Width="100%" AutoGenerateSelectButton="false" BorderStyle="None" BorderWidth="1px"
    CellPadding="2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
    PageSize="15" AllowSorting="true">
    <PagerSettings PageButtonCount="100" />
    <Columns>
    <asp:TemplateField>
    <AlternatingItemTemplate>
    <asp:CheckBox ID="CheckBox1" runat="server" />
    </AlternatingItemTemplate>
    <ItemTemplate>
    <asp:CheckBox ID="CheckBox1" runat="server" />
    </ItemTemplate>
    <HeaderTemplate>
    <asp:CheckBox ID="chk" runat="server" Text="Select All" />
    </HeaderTemplate>
    </asp:TemplateField>
    <%--<asp:CheckBoxField ItemStyle-HorizontalAlign="Center" HeaderText="" />--%>
    <asp:BoundField Visible="false" DataField="id" />
    <asp:BoundField DataField="Lecture / Teacher" HeaderText="Lecture / Teacher" SortExpression="Lecture / Teacher" />
    <asp:BoundField DataField="Institution Name" HeaderText="Institution Name" SortExpression="Institution Name" />
    <asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" />
    <asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" />
    <asp:BoundField DataField="Telephone 1" HeaderText="Telephone 1" SortExpression="Telephone 1" />
    <asp:BoundField DataField="Telephone 2" HeaderText="Telephone 2" SortExpression="Telephone 1" />
    <asp:BoundField Visible="false" DataField="email" HeaderText="email" />
    <asp:CommandField ShowSelectButton="true" SelectText="Select" Visible="false" />
    </Columns>
    </asp:GridView>
  • #217616
    www.codeproject.com/KB/aspnet/GridViewNeatPaging.aspx?fid=425422&df=90&mpp=25&noise=3&sor...

    www.codeproject.com/KB/aspnet/GridViewNeatPaging.aspx -


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.