2个回答
展开全部
追问
谢谢你啊,不过我是wpf弄的,没看见Columns"属性。。。。。能不能加你下呢
追答
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | < Window x:Class = "WpfApplication1.MainWindow" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x = "http://schemas.microsoft.com/winfx/2006/xaml" Title = "MainWindow" Height = "350" Width = "550" > < Grid > < ListView HorizontalAlignment = "Left" Height = "250" Margin = "50,50,0,0" VerticalAlignment = "Top" Width = "420" > < ListView.View > < GridView > <!-- 添加表头 --> < GridViewColumn Header = "ID" Width = "80" /> < GridViewColumn Header = "IP" Width = "80" /> < GridViewColumn Header = "URL" Width = "200" /> </ GridView > </ ListView.View > </ ListView > </ Grid > </ Window > |
本回答被提问者采纳
展开全部
请问下C#ListView怎么添加表头哩
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询