예제 #1
0
        private void Row_LostFocus(object sender, EventArgs e)
        {
            Type rowControl = sender as Type;

            models.db.Row row = rowControl.RowData;

            if (rowControl.RowEditing)
            {
                if (ValidateRowValue != null && ValidateRowValue(rowControl) == false)
                {
                    row = table_.Revert(row);
                }
                else
                {
                    table_.Update(row);
                }
                rowControl.SetRowData(row, false);        // rowの再描画

                if (RowUpdated != null)
                {
                    RowUpdated(rowControl);
                }
            }
        }