System.Data.DataRow.BeginEdit C# (CSharp) Method

BeginEdit() private method

private BeginEdit ( ) : void
return void
        public void BeginEdit() => BeginEditInternal();

Usage Example

Example #1
0
        private void GridConfig_PreviewKeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.F8)
            {
                GridColumn Colum = ((SfDataGrid)sender).CurrentColumn as GridColumn;

                if (Colum.MappingName == "bod_doc")
                {
                    int     idr = 0; string code = ""; string nombre = "";
                    dynamic xx = SiaWin.WindowBuscar("InMae_bod", "cod_bod", "nom_bod", "cod_bod", "idrow", "Maestra de Bodegas", cnEmp, true, "", idEmp: idemp);
                    xx.ShowInTaskbar = false;
                    xx.Owner         = Application.Current.MainWindow;
                    xx.Height        = 500;
                    xx.ShowDialog();
                    idr    = xx.IdRowReturn;
                    code   = xx.Codigo;
                    nombre = xx.Nombre;
                    if (idr > 0)
                    {
                        System.Data.DataRow dr = dt_doc.Rows[GridConfig.SelectedIndex];
                        dr.BeginEdit();
                        dr["bod_doc"] = code;
                        dr.EndEdit();
                    }
                }
            }
        }
All Usage Examples Of System.Data.DataRow::BeginEdit