隐藏asp.net从gridview的最后一列

时间:2019-06-06 10:47:04

标签: asp.net xml 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();
    }

enter image description here

0 个答案:

没有答案