Gridview 从网格视图中选择
是否可以使用从xml文件动态生成的gridview复选框 下面是我用来查询xml的LINQ查询: var hotels=来自xmlDoc.substands(“表”)中的hotel 其中hotel.Element(“hotel_AREA”).Value==ddllocation.SelectedItem.ToString()Gridview 从网格视图中选择,gridview,linq-to-xml,Gridview,Linq To Xml,是否可以使用从xml文件动态生成的gridview复选框 下面是我用来查询xml的LINQ查询: var hotels=来自xmlDoc.substands(“表”)中的hotel 其中hotel.Element(“hotel_AREA”).Value==ddllocation.SelectedItem.ToString() &&Parse(pplTextBox.Text)您可以将gridview设置为不自动生成列。然后,您可以使用所需的额外列设置列 为列表中的项目设置列时,列名必须与代码和设计
&&Parse(pplTextBox.Text)您可以将gridview设置为不自动生成列。然后,您可以使用所需的额外列设置列 为列表中的项目设置列时,列名必须与代码和设计器中的内容匹配 您也可以在代码中完成这一切,下面是一个示例:
GridView1.DataSource = hotels.ToList();
GridView1.DataBind();