首页 > Windows开发 > 详细

c# Datagridview 设置单位格为编辑状态(in editing mode)

时间:2015-01-28 12:42:03      阅读:388      评论:0      收藏:0      [点我收藏+]


private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
    {
        if (e.KeyCode == Keys.Tab && dataGridView1.CurrentCell.ColumnIndex == 1)
        {
            e.Handled = true;
            DataGridViewCell cell = dataGridView1.Rows[0].Cells[0];
            dataGridView1.CurrentCell = cell;
            dataGridView1.BeginEdit(true);               
        }
    }

c# Datagridview 设置单位格为编辑状态(in editing mode)

原文:http://www.cnblogs.com/94cool/p/4255248.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!