Push Button Column in DataGrid (CssClass)
Hello,
Can anyone help in how to set the cssclass for the PushButton in a DataGrid Button Column? Setting bg colour or colour does not change the button itself and I cannot find the tag that would do this.
For example:
<asp:ButtonColumn ItemStyle-CssClass="Grid_Button" Text="Test" ButtonType="PushButton" CommandName="Test">
</asp:ButtonColumn>
(styles.css):
.Grid_Button
{
BACKGROUND-COLOR: #C71444;
BORDER-COLOR: #B3B4CA;
COLOR: #ffffff;
FONT-FAMILY: Verdana, Arial, Helvetica;
FONT-SIZE: 83%
}
If an asp:Button is set to the above cssclass the colours will display correctly, however not on a datagrid PushButton column.
Thanks for your advice!
|