Doesn't GridView.RowStyle accomplish the same thing? If all of the items in a row are formatted the same, then I would just set class of the <RowStyle> tag as so:
<asp:gridview runat="server" cellpadding="5" cssclass="GridView" gridlines="None">
<headerstyle cssclass="GridViewHeader" forecolor="#ffffff" verticalalign="Bottom" />
<rowstyle cssclass="GridViewRow" verticalalign="Top" />
<alternatingrowstyle cssclass="GridViewAlternatingRow" verticalalign="Top" />
<editrowstyle cssclass="GridViewEditRow" verticalalign="Top" />
<selectedrowstyle cssclass="GridViewSelectedRow" verticalalign="Top" />
<footerstyle cssclass="GridViewFooter" />
<pagerstyle cssclass="GridViewPager" />
</asp:gridview>
If you're wanting to format the BoundFields differently than the TemplateFields then I don't know.
Thanks, Ed
Microsoft MVP - ASP/ASP.NET
