Hi all,
Right now I am pulling values from 2 columns in a RadGrid control, and programitcally putting them into a table cell. Then, I am adding that table cell into a gridataitem, programitcally.
What I want to do, is then insert that griddataitem into a control within an item tempalte that contains a header and a footer.
Here is a sample of what I am doing:
Right now I am pulling values from 2 columns in a RadGrid control, and programitcally putting them into a table cell. Then, I am adding that table cell into a gridataitem, programitcally.
What I want to do, is then insert that griddataitem into a control within an item tempalte that contains a header and a footer.
Here is a sample of what I am doing:
<
P
>GridDataItem item = e.Item as GridDataItem;<
BR
></
P
>
<
P
>string totala =
item.OwnerTableView.DataKeyValues[dataItem.ItemIndex]["total1"].ToString();<
BR
>string
totalb =
item.OwnerTableView.DataKeyValues[dataItem.ItemIndex]["total2"].ToString();<
BR
></
P
>
<
P
>double a = double.Parse(totala.ToString());<
BR
>double b =
double.Parse(totalb.ToString());<
BR
>double c = a + b;</
P
>
<
P
><
BR
>TableCell tc = new TableCell();<
BR
>tc.Text = c.ToString("c");</
P
>
<
P
><
BR
>item.Cells.Add(tc);<
BR
></
P
>
Any ideas?