首页 > 解决方案 > 通过asp.net隐藏gridview的最后一列

问题描述

我需要问问题,如何从 GridView 隐藏最后一列?GridView 具有来自文件 xml 的数据。最后一列是 id

    protected void Page_Load(object sender, EventArgs e)
    {
        if(!Page.IsPostBack)
        {
            refreshdata();
        }

    }

    public void refreshdata()
    {
        DataSet dsg = new DataSet();
        dsg.ReadXml(Request.PhysicalApplicationPath + website/hotal/WebsitesFound.xml");
        GridView1.DataSource = dsg;
        GridView1.DataBind();
    }

在此处输入图像描述

标签: asp.netxmlgridview

解决方案


推荐阅读