【发布时间】:2010-02-27 14:11:22
【问题描述】:
我需要更改 ASP.NET GridView 中一列的填充,而外部 CSS 文件中定义的所有其他 CSS 属性应保持不变。我该怎么做?
提前致谢!
更新: 下面是我解决问题的代码:
protected void gvwMaster_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Cells[0].Attributes.Add("style", "padding:0");
}
【问题讨论】: