Hello everyone,
Here is my situation:
I have a dataset with a relationship between two tables. These two tables are load in an hierarchical way in the radgridview.
Now, in the child grid, I have a price column for each row.
I am trying to create a calculated field in the master grid view which will reflect the total of the prices in the child grid. The code I am using is like the following:
...
GridViewTemplate child = rdGvView.MasterTemplate.Templates[0];
rdGvView.MasterTemplate.Columns["TotalPrice"].Expression = "Sum(child.prodPrice)";
....
But this gives me an error which says {"Field name: child does not exist in the template."}
I am using the sum expression from this link: http://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression(VS.80).aspx
where prodPrice is the column name of the table in the dataset which is imported in the radgrid.
Thanks,
Yash
Here is my situation:
I have a dataset with a relationship between two tables. These two tables are load in an hierarchical way in the radgridview.
Now, in the child grid, I have a price column for each row.
I am trying to create a calculated field in the master grid view which will reflect the total of the prices in the child grid. The code I am using is like the following:
...
GridViewTemplate child = rdGvView.MasterTemplate.Templates[0];
rdGvView.MasterTemplate.Columns["TotalPrice"].Expression = "Sum(child.prodPrice)";
....
But this gives me an error which says {"Field name: child does not exist in the template."}
I am using the sum expression from this link: http://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression(VS.80).aspx
where prodPrice is the column name of the table in the dataset which is imported in the radgrid.
Thanks,
Yash