示例#1
0
        protected override void GRD_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
        {
            base.GRD_CellValidating(sender, e);

            if (GRD.IsCurrentCellDirty)
            {
                CurrentTask = (TaskItem)GRD.Rows[e.RowIndex].DataBoundItem;
                CurrentTask.BeginEdit();
            }
        }