asp.net - 通过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();
}
解决方案
推荐阅读
- ios - Audiokit:仅在耳机中的扬声器(iPhone 4s)中没有输出。带有 .defaultToSpeaker 的 AKSettings 不起作用
- python - 如何在列表视图中的每个帖子上运行一个函数并将一个布尔变量传递到我的 html 中?
- r - R中的子集数据,其中一列必须有3种可能性
- java - 使用 byte-buddy 从头开始创建一个类及其方法
- c# - C#:在数组中查找具有相同 id 的对象并将它们的数量值相加。将它们添加到新对象
- ruby-on-rails - 特色错误:Bundler 找不到 gem "activesupport" 的兼容版本:
- java - 如何在 NavigationView 中创建 clickListener?
- java - Hibernate 不会在 Spring 应用程序中自动创建表
- android - Fragment 无法转换为 Context(应用程序立即崩溃)
- google-cloud-platform - plesk 的 Google Cloud 托管实例组问题