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

    Grid View page index changing problem in ....... 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
    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" />
    <asp:CheckBox ID="CheckBox1" runat="server" />
    <asp:CheckBox ID="CheckBox1" runat="server" />
    <asp:CheckBox ID="chk" runat="server" Text="Select All" />
    <%--<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" />
  • #217616 -

  • 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.