Nobletucky2004
asked on
Need to add to bound columns in a repeater control
How can I add a third bound column in a Repeater that takes the sum of the following two bound columns in a repeater control?
<%# DataBinder.Eval(Container. DataItem, "sched_m") %></td>
<%# DataBinder.Eval(Container. DataItem, "sched_f") %></td>
<%# DataBinder.Eval(Container.
<%# DataBinder.Eval(Container.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The report required too much formatting for a datagrid control so I'm stuck with the repeater.
I would add a template column and make an itemdatabound subroutine to handle the OnItemDataBound event (put OnItemDataBound="DataGrid1
Each time a row is added, it will call this subroutine and you can do math with each cell of the row(item)
Protected Sub DataGrid1_ItemDataBound(By
'assuming template column will be column #7 and the dropdown list is column 5 and the quantity is column 6
e.item.cells(7).text = CStr(CDbl(e.item.cells(6).
End Sub
Regards,
Aeros