private void DataProducto_CurrentCellBeginEdit(object sender, CurrentCellBeginEditEventArgs e) { try { int idr = 0; string code = ""; string nom = ""; dynamic winb = SiaWin.WindowBuscar("inmae_ref", "cod_ref", "nom_ref", "cod_ref", "idrow", "Maestra dereferencia", SiaWin.Func.DatosEmp(idemp), false, "", idEmp: idemp); winb.ShowInTaskbar = false; winb.Owner = Application.Current.MainWindow; winb.Height = 300; winb.Width = 400; winb.ShowDialog(); idr = winb.IdRowReturn; code = winb.Codigo; nom = winb.Nombre; winb = null; //e.Cancel = async; int a = DataProducto.SelectedIndex; _productos[a - 1].Referencia = "Vikas-Modified"; //Productos productos = new Productos(Convert.ToString(code), Convert.ToString(nom), "", "", "", ""); //productos.Referencia = "PRUEBA"; } catch (Exception w) { MessageBox.Show("error!!:" + w); } }
void grid_CurrentCellBeginEdit(object sender, CurrentCellBeginEditEventArgs args) { if (window == null) { return; } window.ZoomSlider.IsEnabled = false; window.ZoomIncreaseButton.IsEnabled = false; window.ZoomDecreaseButton.IsEnabled = false; window.ZoomTextBlock.IsEnabled = false; window.ModeTextBlock.Text = "ENTER"; }
private void AssociatedObject_CurrentCellBeginEdit(object sender, CurrentCellBeginEditEventArgs e) { SfDataGrid grid = sender as SfDataGrid; if (grid != null) { var editedIndex = e.RowColumnIndex; var recordIndex = grid.ResolveToRecordIndex(e.RowColumnIndex.RowIndex); var columnIndex = grid.ResolveToGridVisibleColumnIndex(e.RowColumnIndex.ColumnIndex); var editedMappedName = grid.Columns[columnIndex].MappingName; var record = grid.View.Records.GetItemAt(recordIndex); var editCellValue = grid.View.GetPropertyAccessProvider().GetValue(record, editedMappedName); var baseDto = editCellValue as BaseViewObject; if (baseDto != null) { baseDto.ShowCommand = ShowCommand; } } }
private void SyncfusionGrid_CurrentCellBeginEdit(object sender, CurrentCellBeginEditEventArgs e) { //var rowIndex = e.RowColumnIndex.RowIndex; ////If the rowindex in AddNewRowIndex, we need to validate whether the property is readonly or not. //if (this.SyncfusionGrid.IsAddNewIndex(rowIndex)) //{ // //pdc - PropertyDescriptorCollection. // var pdc = this.SyncfusionGrid.View.GetItemProperties(); // //get the propertyinfo from PropertyDescriptorCollection. // var propertyInfo = pdc.Find(e.Column.MappingName, true); // //property is readonly you can cancel the editing of the cell. // if (propertyInfo.IsReadOnly) // { // e.Cancel = true; // } //} }
void cellgrid_CurrentCellBeginEdit(object sender, CurrentCellBeginEditEventArgs args) { eventsTxtBox.Text += "\ncurrentcell begin editing"; }
private void dataGrid_BeginCellEdit(object sender, CurrentCellBeginEditEventArgs e) { this._currentColumn = e.Column; //_currentIndex = e.RowColumnIndex.ColumnIndex; }
void sfDataGrid1_CurrentCellBeginEdit(object sender, CurrentCellBeginEditEventArgs e) { process = System.Diagnostics.Process.Start("Osk.exe"); }