I have a GridView and in the first row I want that the lines be padded on left by 20px. I tried to do it with CSSClass but does not work.
<div class="rounded-corners"; style=" margin-left:50px; margin-right:50px; ">
<asp:GridView id="MyGridView"
DataSourceID="MyDataSource1"
AutoGenerateColumns="False"
GridLines="None"
AllowSorting="True"
AllowPaging="True"
CssClass="mGrid"
PagerStyle-CssClass="pgr"
AlternatingRowStyle-CssClass="alt"
Runat="Server" PageSize="35" HorizontalAlign="Justify"
onselectedindexchanged="MyGridView_SelectedIndexChanged"
onrowdatabound="MyGridView_RowDataBound">
<PagerSettings FirstPageText="Début" LastPageText="Fin" NextPageText="Suivant"
PageButtonCount="15" PreviousPageText="Précedent" />
<columns>
<asp:boundfield datafield="FICHIER"
readonly="true"
headertext="Fichier">
<ItemStyle CssClass="CellFile" />
</asp:boundfield>
.....
.....
.....
with CssClass as below :
<style type="text/css">
.CellFile
{
padding-left:100px;
margin-left:100px;
color:Lime;
background-color:Red;
}
</style>
So what could be wrong here ?