pankaj pareek
Wednesday, December 30, 2009
Grid view Desgin
<%--<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GV.aspx.cs" Inherits="MyCodeSnippet.GV1" %>
Sample Grid View
User Details
DataKeyNames="UserId" ForeColor="#333333" GridLines="None" ShowFooter="true"
AllowPaging="True" PageSize="5" AllowSorting="True" OnPageIndexChanging="GridView1_PageIndexChanging"
OnRowCreated="GridView1_RowCreated" OnRowDataBound="GridView1_RowDataBound"
OnRowDeleting="GridView1_RowDeleting" OnRowUpdating="GridView1_RowUpdating" OnRowEditing="grdview_RowEditing" OnRowCancelingEdit="grdview_RowCancelingEdit" OnDataBound="grdview_DataBound" OnRowCommand="grdview_RowCommand" OnSorting="grdview_Sorting"
>
Runat="server" ID="delete" onclientclick="return confirm('Are you sure you want to delete this Record?');" />
Pages:
1
3
5
10
20
runat="server" AlternateText="First Page"
CommandName="Page" CommandArgument="First"
ImageUrl="~/Pics/left2.GIF" />
runat="server" AlternateText="Previous Page"
CommandName="Page" CommandArgument="Prev"
ImageUrl="~/Pics/left.GIF" />
Page
AutoPostBack="true"
OnSelectedIndexChanged="PageNumberDropDownList_OnSelectedIndexChanged"
runat="server">
of
ID="PageCountLabel" runat="server" />
runat="server" AlternateText="Next Page"
CommandName="Page" CommandArgument="Next"
ImageUrl="~/Pics/right.GIF" />
runat="server" AlternateText="Last Page"
CommandName="Page" CommandArgument="Last"
ImageUrl="~/Pics/right2.GIF" />
--%>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment