[英]How to Add Dynamic Column in listview Wpf
i have a problem i want to add Colomn ( Dynamic using C #) in listview in Wpf how can i achive it and why we using grid view inside Listview in Wpf plz help me out 我有一个问题,我想在Wpf的Listview中添加Colomn(使用C#动态),我如何实现它?为什么我们在Wpf的Listview中使用网格视图帮助我
thanks shashank tyagi 感谢shashank tyagi
A ListView
can present data in a variety of formats. ListView
可以多种格式显示数据。 This is based on it's View
property. 这基于它的
View
属性。 By setting the view to GridView
. 通过将视图设置为
GridView
。 you are telling the listview that you wish to present your data in the gridview format. 您告诉列表视图您希望以gridview格式显示数据。
AS for the creation of columns MSDN has a good tutorial on how to do this programatically . 用于创建列的AS MSDN提供了有关如何以编程方式执行此操作的很好的教程 。
Basically you'll just need to create the gridview dynamically and then assign it to the View property of the listview 基本上,您只需要动态创建gridview,然后将其分配给listview的View属性即可。
Hope it helps. 希望能帮助到你。 - Val
-Val
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.