[求助]关于Gridview的RowDataBound的问题
我给一个Gridview的RowDataBound(object sender, GridViewRowEventArgs e)写了如下:if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.RowState == DataControlRowState.Edit)
{
((TextBox)(e.Row.Cells[2].Controls[0])).TextMode = TextBoxMode.MultiLine;
((TextBox)(e.Row.Cells[2].Controls[0])).Width = 200;
((TextBox)(e.Row.Cells[2].Controls[0])).Height = 100;
}
}
为什么只有第一行响应了,其他行没有响应呢?