Hi guys !
I dont know why, whatever I put in the ItemStyle-Width value (8px), the columns width seems to not follow this value ??? As per the attached printscreen, the columns supposed to be identical, but is not...
For information, the headers are off, I made it with a asp:Table...
Is someone could help me ? Thanks in advance !
Code:<asp:GridView ID="GridViewCalc" CssClass="GridViewCalc" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource2" EmptyDataText="Aucune donnée man" ShowHeader="False" CellPadding="0"> <columns> <asp:BoundField DataField="Champ1" SortExpression="Champ1" ItemStyle-Width="8px" ItemStyle-HorizontalAlign="Center"></asp:BoundField> <asp:BoundField DataField="Champ2" ItemStyle-Width="8px" ItemStyle-HorizontalAlign="Center"></asp:BoundField> <asp:BoundField DataField="Champ3" ItemStyle-Width="8px" ItemStyle-HorizontalAlign="Center"></asp:BoundField> <asp:BoundField DataField="Champ4" ItemStyle-Width="8px" ItemStyle-HorizontalAlign="Center"></asp:BoundField> <asp:BoundField DataField="Champ5" ItemStyle-Width="8px" ItemStyle-HorizontalAlign="Center"></asp:BoundField> <asp:BoundField DataField="Champ6" ItemStyle-Width="8px" ItemStyle-HorizontalAlign="Center"></asp:BoundField> <asp:BoundField DataField="Champ7" ItemStyle-Width="8px" ItemStyle-HorizontalAlign="Center"></asp:BoundField> </columns> </asp:GridView>Code:.GridViewCalc {position:absolute; top:0px; left:0px; width:470px; height:175px;background:#FFFFFF; color:#3B4E77;}





Reply With Quote