S
Steve B.
Hi,
I'd like to apply a css class on all cells in all gridviews in my app. To
achieve that, I have to set hte item-style cssclass property of each
columns.
If I add this to my skin file :
<asp:GridView
runat="server"<FooterStyle CssClass="GridViewFooterStyle" />
<PagerStyle CssClass="GridViewPagerStyle" />
<PagerSettings PageButtonCount="100" />
<SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
<HeaderStyle CssClass="GridViewHeaderStyle" />
<AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
<Columns>
<asp:BoundField ItemStyle-CssClass="ItemStyle" />
</Columns>
</asp:GridView>
All gridview in my apps have only one column (empty) with the style
applied... It seems that when <Columns> is defined, it overrides all colums
definition in all pages...
Finally, the only way I found is to add the property to all columns in all
gridview in all pages which requires a lot of extra work....
Is there any way to reach my goal ?
Thanks,
Steve
I'd like to apply a css class on all cells in all gridviews in my app. To
achieve that, I have to set hte item-style cssclass property of each
columns.
If I add this to my skin file :
<asp:GridView
runat="server"<FooterStyle CssClass="GridViewFooterStyle" />
<PagerStyle CssClass="GridViewPagerStyle" />
<PagerSettings PageButtonCount="100" />
<SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
<HeaderStyle CssClass="GridViewHeaderStyle" />
<AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
<Columns>
<asp:BoundField ItemStyle-CssClass="ItemStyle" />
</Columns>
</asp:GridView>
All gridview in my apps have only one column (empty) with the style
applied... It seems that when <Columns> is defined, it overrides all colums
definition in all pages...
Finally, the only way I found is to add the property to all columns in all
gridview in all pages which requires a lot of extra work....
Is there any way to reach my goal ?
Thanks,
Steve