找到了~可以用DataGridViewTextBoxEditingControl中的SelectAll()
((DataGridViewTextBoxEditingControl)DataGridView.EditingControl).SelectAll();