ListView.CheckBoxes更改列infrc

时间:2013-02-19 06:29:48

标签: c# winforms listview

我有一个带有Property的ListBox:

this.artistsListView.Activation = System.Windows.Forms.ItemActivation.TwoClick;
this.artistsListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
| System.Windows.Forms.AnchorStyles.Left) 
| System.Windows.Forms.AnchorStyles.Right)));
this.artistsListView.CheckBoxes = true;
this.artistsListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.check,
this.columnHeader1,
this.columnHeader2,
this.columnHeader4,
this.columnHeader5,
this.columnHeader3});
this.artistsListView.ContextMenuStrip = this.contextMenuStrip1;
this.artistsListView.GridLines = true;
this.artistsListView.Location = new System.Drawing.Point(8, 73);
this.artistsListView.Name = "artistsListView";
this.artistsListView.Size = new System.Drawing.Size(720, 144);
this.artistsListView.TabIndex = 9;
this.artistsListView.UseCompatibleStateImageBehavior = false;
this.artistsListView.FullRowSelect = true;
this.artistsListView.View = System.Windows.Forms.View.Details;

但是复选框列索引是最后一个。 如何首先插入复选框列?

0 个答案:

没有答案