private void btnNew_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         HeaderView.AddNewRow();
         HeaderGrid.EmbeddedNavigator.Buttons.DoClick(HeaderGrid.EmbeddedNavigator.Buttons.EndEdit);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        private void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                if (JournalsName.EditValue == null)
                {
                    MessageBox.Show("You must Choose Journal Name", "Stop", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                    return;
                }
                CmbGetGeneralJournals.SelectedIndex = 1;
                HeaderView.AddNewRow();
                #region Add Transaction To DatatBase :
                header.AddHeaderDetails(long.Parse(header.GetCode().ToString()), int.Parse(JournalsName.EditValue.ToString()), DateTime.Now, txtDiscription.Text, UserCode, false);
                #endregion

                btnCancel_Click(null, null);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }