vb里怎样用listview控件添加列与行
展开全部
'设置ListView控件列(增加列标题,显示格式等)
ListView1.ColumnHeaders.Add , , "工号", ListView1.Width / 2
ListView1.ColumnHeaders.Add , , "姓名", ListView1.Width / 2
ListView1.View = lvwReport '设置外观为报表样式
ListView1.LabelEdit = lvwManual
ListView1.FullRowSelect = True
ListView1.HideSelection = False
ListView1.ColumnHeaders.Add , , "工号", ListView1.Width / 2
ListView1.ColumnHeaders.Add , , "姓名", ListView1.Width / 2
ListView1.View = lvwReport '设置外观为报表样式
ListView1.LabelEdit = lvwManual
ListView1.FullRowSelect = True
ListView1.HideSelection = False
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询