實現用textbox基類套用到grid 內
Class definition class:
public class grc_textbox_lu : DevExpress.XtraEditors.Repository.RepositoryItemTextEdit
{
public grc_textbox_lu()
{
this.Appearance.BackColor = Color.Green ;
this.DoubleClick += new System.EventHandler(this.grc_textbox_lu_DoubleClick);
this.EditValueChanged += new System.EventHandler(this.grc_textbox_lu_EditValueChanged);
}
private void grc_textbox_lu_DoubleClick(object sender, EventArgs e)
{
MessageBox.Show("double click from enderlu");
}
private void grc_textbox_lu_EditValueChanged(object sender, EventArgs e)
{
MessageBox.Show("value changed from enderlu" );
}
}