public override void Save()
        {
            try
            {
                foreach (var item in grdBookingType.Rows)
                {
                    if (item.Cells[COLS.BackgroundColorValue].Value.ToInt() != item.Cells[COLS.BackgroundColorOldValue].Value.ToInt())
                    {
                        objMaster = new BookingTypeBO();
                        objMaster.GetByPrimaryKey(item.Cells[COLS.Id].Value.ToInt());

                        if (objMaster.Current != null)
                        {
                            objMaster.Current.BackgroundColor = item.Cells[COLS.BackgroundColorValue].Value.ToIntorNull();

                            objMaster.Save();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                ENUtils.ShowMessage(ex.Message);
            }
        }
        public frmBookingTypes()
        {
            InitializeComponent();

            objMaster = new BookingTypeBO();
            this.SetProperties((INavigation)objMaster);

            FormatGrid();
            this.Load       += new EventHandler(frmBookingTypes_Load);
            this.FormClosed += new FormClosedEventHandler(frmBookingTypes_FormClosed);
        }