反正就是想让cell变得 狭窄一点设置cell.width了   没反应啊
设置字体的话  用newCell.Font.Size   也没反应呢~~~谢大侠~~~~~

解决方案 »

  1.   

    width是宽度,heIght是高度,你把高度设小点就窄了啊
      

  2.   


    /// <summary>
            /// 让gv的列宽相等
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            protected void gvDataNavigation_RowDataBound(object sender, GridViewRowEventArgs e)
            {
                foreach (TableCell tc in e.Row.Cells)
                {
                    tc.Attributes["style"] = "width:100px;";
                }
            }
      

  3.   

    对字体设置需要table的style中的font-size属性进行设置