对于WinCE下ListView添加带checkbox的列

过程很简单,就是在加载时调出CheckBoxes的属性即可。

private void StockOut4Deal_Load(object sender, EventArgs e)
        {

            tbSteelCoil.Focus();
            this.listView1.Columns.Add("选择", 30, HorizontalAlignment.Right);
            this.listView1.Columns.Add("列A", 100, HorizontalAlignment.Right);
            this.listView1.Columns.Add("列B", 100, HorizontalAlignment.Right);
            this.listView1.CheckBoxes = true;
        }

你可能感兴趣的:(Windows,Mobile)