protected override void OnValidated(EventArgs e)
        {
            if (dataGridView != null && dataGridView is ExtendedDataGridView)
            {
                ExtendedDataGridView edgw = dataGridView as ExtendedDataGridView;
                edgw.ControlValidate(edgw.CurrentCell.OwningColumn.Name, this.Description);

                //if (edgw == null)
                //    MessageBox.Show("edgw");
                //if (DescriptionColumn == null)
                //    MessageBox.Show("DescriptionColumn");
                //if (edgw.CurrentRow == null)
                //    MessageBox.Show("edgw.CurrentRow");
                //if (edgw.CurrentRow.Cells == null)
                //    MessageBox.Show("edgw.CurrentRow.Cells");
                //if (edgw.CurrentRow.Cells[DescriptionColumn.Name] == null)
                //    MessageBox.Show("edgw.CurrentRow.Cells[DescriptionColumn.Name]");
                //if (edgw.CurrentRow.Cells[DescriptionColumn.Name].Value == null)
                //    MessageBox.Show("edgw.CurrentRow.Cells[DescriptionColumn.Name].Value");

                if (DescriptionColumn != null &&
                    edgw.CurrentRow.Cells[DescriptionColumn.Name] != null &&
                    edgw.CurrentRow.Cells[DescriptionColumn.Name].Value != null &&
                    edgw.CurrentRow.Cells[DescriptionColumn.Name].Value.ToString() != this.Description)
                {
                    edgw.CurrentRow.Cells[DescriptionColumn.Name].Value = this.Description;
                }
            }
            base.OnValidated(e);
        }
 protected override void OnValidated(EventArgs e)
 {
     if (dataGridView != null && dataGridView is ExtendedDataGridView)
     {
         ExtendedDataGridView edgw = dataGridView as ExtendedDataGridView;
         if (edgw.CurrentCell != null)
         {
             edgw.ControlValidate(edgw.CurrentCell.OwningColumn.Name, this.Description);
             if (DescriptionColumn != null &&
                 edgw.CurrentRow.Cells[DescriptionColumn.Name] != null)
             {
                 edgw.CurrentRow.Cells[DescriptionColumn.Name].Value = this.Description;
             }
         }
     }
     base.OnValidated(e);
 }
        protected override void OnValidated(EventArgs e)
        {
            if (dataGridView is ExtendedDataGridView)
            {
                ExtendedDataGridView edgw = dataGridView as ExtendedDataGridView;

                //if (SL.ContainsKey(this.Text))
                //{
                edgw.ControlValidate(edgw.CurrentCell.OwningColumn.Name, Text);
                if (DescriptionColumn != null)
                {
                    edgw.CurrentRow.Cells[DescriptionColumn.Name].Value = GetDescription(Text);
                }

                //}
            }
            base.OnValidated(e);
        }