1: You can bind directly to the text page to the text page to the field 2: You can find the label in ItemDatabase. WebControls.DataGridItemEventArgs e) {if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) {string messageid = (string) e.Item.Cells [0] .Text; Label Lab = (label) E.Item.FindControl ("label1"); lab.text = "...";}}
Foreach (DataGridItem Item in this.dataGrid1.items) {string strpiece = ((TextBox) item.findControl ("Edit_piece"). TEXT.TRIM (). Tostring ();
TextBox textBox1 = item.FindControl ("textbox1"); TextBox1.text = Convert.Toint32 (STRPIECE) * 33;}