/* Fin Silvina 20110504 - Tarea 0000123 */ private void gridStandar_GetNewRow(object sender, Janus.Windows.GridEX.GetNewRowEventArgs e) { DataRow row = (DataRow)e.NewRow; if (row.Table != null) { DataTable table = row.Table; if (table.Columns.Contains("FechaCreacion")) { row["FechaCreacion"] = mz.erp.businessrules.Sistema.DateTime.Now; } if (table.Columns.Contains("IdConexionCreacion")) { row["IdConexionCreacion"] = Security.IdConexion; } if (table.Columns.Contains("IdConexionUltimaModificacion")) { row["IdConexionUltimaModificacion"] = Security.IdConexion; } if (table.Columns.Contains("RowId")) { row["RowId"] = Guid.Empty; } } }
private void GridEX1_GetNewRow(object sender, Janus.Windows.GridEX.GetNewRowEventArgs e) { e.NewRow = new Person(); }