G
Guest
Hi,
I use a datagrid with asp:templatecolumn, and handles the datagrid's
ItemDataBound event, whereby I assign a value to this asp:templatecolumn text.
e.Item.Cells[1].Text = e.Item.Cells[2].Text + e.Item.Cells[3].Text;
/* column index 2 and 3 are boundcolumn */
The issue that I have is that the column header (index 1) would be blank
after it.
Furthermore, after postback, the values for the individual rows (only column
index 1) will be missing as well. Is this because on postback, as I didn't
rebind the datagrid, so the event didn't run, thus the system erase the data
from that particular column?
Anyhow that I can fix these two issues?
Thanks.
I use a datagrid with asp:templatecolumn, and handles the datagrid's
ItemDataBound event, whereby I assign a value to this asp:templatecolumn text.
e.Item.Cells[1].Text = e.Item.Cells[2].Text + e.Item.Cells[3].Text;
/* column index 2 and 3 are boundcolumn */
The issue that I have is that the column header (index 1) would be blank
after it.
Furthermore, after postback, the values for the individual rows (only column
index 1) will be missing as well. Is this because on postback, as I didn't
rebind the datagrid, so the event didn't run, thus the system erase the data
from that particular column?
Anyhow that I can fix these two issues?
Thanks.