您的位置:首页 > 移动开发 > Objective-C

dataGridView选中单元格编辑,然后删除行时会报错,需要写如下语句

2011-09-02 10:26 351 查看
private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)

{

    int x = dataGridView1.CurrentCellAddress.X;

    int y = dataGridView1.CurrentCellAddress.Y;

    if (dataGridView1[x, y].FormattedValue.ToString() == "") return;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  object
相关文章推荐