コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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;
                }
            }
        }