分享

SPGridview的webpart实例

 cz0007 2010-04-11

SpGridView

.NET 2010-04-01 15:26:05 阅读21 评论0 字号:

这是我自己写的一个SPGridview的webpart的实例 包括SpGridview的自定义分页功能,代码如下:

using System;
using System.Runtime.InteropServices;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Serialization;

using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.WebPartPages;
using System.ComponentModel;
using System.Collections;
using System.Data;
namespace WebPartSpGV
{
    [Guid("de347763-c7f9-47e4-a74e-10fe39c58d3e")]
    public class Spgridview : System.Web.UI.WebControls.WebParts.WebPart
    {
        #region
        LinkButton FirBtn = null;
        LinkButton PreBtn = null;
        LinkButton NexBtn = null;
        LinkButton LastBtn = null;
        Button GoBtn = null;
        Label PageLab = null;
        TextBox GoText = null;
        TextBox NowPageText = null;
        TableRow tr2 = null;

        GridView gv = null;

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多