我需要问一个问题,如何从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();
}