日期:2014-05-17 浏览次数:20499 次
if (e.Row.RowState == (DataControlRowState.Edit ------解决方案-------------------- DataControlRowState.Alternate) ------解决方案-------------------- e.Row.RowState == DataControlRowState.Edit) { TextBox tbUpdate; for (int i = 2; i < e.Row.Cells.Count; i++) { if (e.Row.Cells[i].Controls.Count != 0) { tbUpdate = e.Row.Cells[i].Controls[0] as TextBox; if (tbUpdate != null) { tbUpdate.Width = Unit.Pixel(100); } } } }
Quote: 引用: if (e.Row.RowState == (DataControlRowState.Edit ------解决方案-------------------- DataControlRowState.Alternate) ------解决方案-------------------- e.Row.RowState == DataControlRowState.Edit) { TextBox tbUpdate; for (int i = 2; i < e.Row.Cells.Count; i++) { if (e.Row.Cells
if (e.Row.RowState == (DataControlRowState.Edit ------解决方案-------------------- DataControlRowState.Alternate) ------解决方案-------------------- e.Row.RowState == DataControlRowState.Edit) { TextBox tbUpdate; for (int i = 2; i < e.Row.Cells.Count; i++) { if (e.Row.Cells