Hi, thanks for your reply.
In your example, which I tried, e.Column.UniqueName is always equal to "ExpandColumn".
What I'm trying to do is in the OnItemDataBound event, run a calculation and display the result in the footer:
private decimal totalOne;
private decimal totalTwo;
sender, GridItemEventArgs e)
var gridItem = e.Item
totalOne += Conversion.ConvertToDecimal(gridItem[
totalTwo += Conversion.ConvertToDecimal(gridItem[
var footerItem = e.Item
.totalOne != 0 &&
.totalTwo != 0)
calculatedValue = (
.totalTwo * 100) /
displayValue = calculatedValue.ToString(
Apologies if the code is not quite right, I just quickly threw it together. I don't yet know if I need to track the totals better than this.
The problem I have is that "One" / "totalOne" must be the maximum
value held in that column.
Help much appreciated!