我有详细模式的Listview有3列.我想将标题的文本对齐设置为“居中”.这适用于最后两列但不适用于第一列.如果我想将其更改为“center”并单击“center”,则该字段将保持设置为“left”.我可以使用属性更改此属性还是需要对此进行编程?
谢谢.
根据
the documentation:
Due to a limitation in the underlying control,this property has no effect on the first column in the ListView control,which is always aligned to the left. To work around this limitation in .NET Framework version 2.0,you can handle the 07001 event and paint the column header yourself.