例如,
void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
TextBox txtbox = e.Control as TextBox;
if (txtbox != null)
{
//
}
和
void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
Control ctl = e.Control;
DataGridViewTextBoxEditingControl dText = (DataGridViewTextBoxEditingControl)ctl;
if (dText!= null)
{
//
}
DataGridViewTextBoxEditingControl 代替 TextBox 有什么优势?
帮我..