Пример #1
0
 private void gridView1_EditFormShowing(object sender, EditFormShowingEventArgs e)
 {
     if (e.RowHandle <= gridView1.RowCount - 1 && e.RowHandle >= 0)
     {
         gridView1.OptionsEditForm.FormCaptionFormat = "Chỉnh sửa thông tin " + gridView1.GetDataRow(gridView1.FocusedRowHandle)["Ten_Nh_Vt"].ToString();
     }
     else
     {
         gridView1.OptionsEditForm.FormCaptionFormat = "Thêm mới";
     }
 }
Пример #2
0
 private void gridView1_EditFormShowing(object sender, EditFormShowingEventArgs e)
 {
     if (gridView1.IsDataRow(e.RowHandle))
     {
         DataAccess.PurchaseInvoice currentRow = (DataAccess.PurchaseInvoice)gridView1.GetFocusedRow();
         if (currentRow.Flag == 1) //Clased Invoice
         {
             e.Allow = false;
             MessageBox.Show("You can not update closed invoice", "Closed Invoice", MessageBoxButtons.OK, MessageBoxIcon.Stop);
         }
     }
 }
Пример #3
0
        private void DgvGridView_EditFormShowing(object sender, EditFormShowingEventArgs e)
        {
            GridView view = sender as GridView;

            if (view == null)
            {
                return;
            }
            if (Convert.ToDouble(view.GetRowCellValue(e.RowHandle, "QTYALLOC")) > 0)
            {
                e.Allow = false;
            }

            if (Convert.ToDouble(view.GetRowCellValue(e.RowHandle, "AMTALLOC")) > 0)
            {
                e.Allow = false;
            }
        }
Пример #4
0
 private void tableview0_EditFormShowing(object sender, EditFormShowingEventArgs e)
 {
     int rowHandle = e.RowHandle;
     var row       = gridctrl0.GetRow(rowHandle);
 }
Пример #5
0
 private static void OnEditFormShowing(object sender, EditFormShowingEventArgs e)
 {
 }
Пример #6
0
 private void ophoGridView_EditFormShowing(object sender, EditFormShowingEventArgs e)
 {
     colLOIDX.OptionsColumn.ReadOnly = true;
     STUrepositoryItemRadioGroup.Items[1].Enabled = kim == "U";
 }
Пример #7
0
 private void grvDetails_EditFormShowing(object sender, EditFormShowingEventArgs e)
 {
 }