0
thanks for your reponse,
I can get the values in the code behind using:
TextBox r1c7 = (TextBox)row.Cells[5].FindControl("txtamount"); for example
but how do I set the Text value in the asp.net, i.e.,
Text='<%# Bind("[whatgoeshere]") %>'>
0
i think this is what you are looking for
protected void GDVDates_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex < 0) return; // when e.Row.RowIndex is -1, it`s HeaderText e.Row.Cells[3].Text = Convert.ToInt32(e.Row.Cells[1].Text).ToString() + " - " + Convert.ToInt32(e.Row.Cells[2].Text).ToString(); e.Row.Cells[1].Text = Convert.ToInt32(e.Row.Cells[1].Text).ToString(); e.Row.Cells[2].Text = Convert.ToInt32(e.Row.Cells[2].Text).ToString(); }
|