private void EditSource_PreparedPostObject(object sender, PreparePostObjectEventArgs e) { DataSet postDataSet = e.InputData.PostObject.Convert<DataSet>(); DataTable table = postDataSet.Tables[TableName]; if (table != null) { int index = 1; foreach (DataRow row in table.Rows) row["OrderNum"] = (index++) * 10; } }
private void EditSource_PreparedPostObject(object sender, PreparePostObjectEventArgs e) { DataSet postDataSet = e.InputData.PostObject.Convert <DataSet>(); DataTable table = postDataSet.Tables[TableName]; if (table != null) { int index = 1; foreach (DataRow row in table.Rows) { row["OrderNum"] = (index++) * 10; } } }