none
关于DataGridView的用法 RRS feed

答案

  • 首先切换到设计界面,点击dataGridView的右上角(鼠标轻轻移动上去)的一个小箭头,点击之后选择Edit Columns(编辑列……),然后再弹出的框框中点击左下角的Add……按钮,弹出添加列的框框,然后在下拉列表中选择添加DataGridViewCheckboxColumn。

    判断是否选中:

    (bool)DataGridView1.Rows[索引].Cells[索引].FormattedValue是否为true。


    If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer

    Help by clicking:
    Click here to donate your rice to the poor
    Click to Donate
    Click to feed Dogs & Cats


    Found any spamming-senders? Please report at: Spam Report

    2013年6月26日 1:41
    版主