GridView 固定行高

  protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e)
    {
       
for (int i = 0; i < e.Row.Cells.Count; i++)
        {
            e.Row.Cells[i].Attributes.Add(
"style", "white-space: nowrap;");
            e.Row.Height
= Unit.Pixel(100);
        }
    }

posted on 2009-03-06 13:15  几度夕阳红了  阅读(3325)  评论(0编辑  收藏  举报