Пример #1
0
        private void ItemType_GridView_RowUpdated(object sender, RowObjectEventArgs e)
        {
            ItemType row      = e.Row.CastTo <ItemType>();
            bool     isNewRow = ItemType_GridView.IsNewItemRow(e.RowHandle);

            if (isNewRow)
            {
                row.Status = ModifyMode.Insert;
                return;
            }

            if (row.Status == ModifyMode.Insert)
            {
                return;
            }

            row.Status = ModifyMode.Update;
        }