G
Guest
I have a hyperlink column in a datagrid as follows
<asp:HyperLinkColumn DataNavigateUrlField="OrderId" DataNavigateUrlFormatString="OrderDetails.aspx?Id={0}" DataTextField="Order" HeaderText="Order" ItemStyle-CssClass="Green10pt"></asp:HyperLinkColumn
renders
...
<td class="Green10pt"><a href=OrderDetails.aspx?Id=398365">ABC Corp</a></td>..
How can I get the class to be added to the anchor <a> tag not in the outer <td> element? ItemStyle-CssClass is not doing what I thought it would
Dave
<asp:HyperLinkColumn DataNavigateUrlField="OrderId" DataNavigateUrlFormatString="OrderDetails.aspx?Id={0}" DataTextField="Order" HeaderText="Order" ItemStyle-CssClass="Green10pt"></asp:HyperLinkColumn
renders
...
<td class="Green10pt"><a href=OrderDetails.aspx?Id=398365">ABC Corp</a></td>..
How can I get the class to be added to the anchor <a> tag not in the outer <td> element? ItemStyle-CssClass is not doing what I thought it would
Dave