就是听到datagridview里时 怎么显示蓝色的覆盖的 能不能不要显示这样的 直接有个 ¦停在那里啊

private void dataGridView1_CellBeginEdit( object sender, DataGridViewCellCancelEventArgs e)
        {
           
           
if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].GetType().Name == " DataGridViewTextBoxCell " )
            {
               
if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString() != "" )
                {
                    SendKeys.Send(
" ^{a} " );
                    SendKeys.Send(
" {RIGHT} " );
                }
            }
        }

你可能感兴趣的:(datagridview)