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"; } }
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); } } }
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; } }
private void tableview0_EditFormShowing(object sender, EditFormShowingEventArgs e) { int rowHandle = e.RowHandle; var row = gridctrl0.GetRow(rowHandle); }
private static void OnEditFormShowing(object sender, EditFormShowingEventArgs e) { }
private void ophoGridView_EditFormShowing(object sender, EditFormShowingEventArgs e) { colLOIDX.OptionsColumn.ReadOnly = true; STUrepositoryItemRadioGroup.Items[1].Enabled = kim == "U"; }
private void grvDetails_EditFormShowing(object sender, EditFormShowingEventArgs e) { }