Hi!
ok heres my problem:
when I assign styles in the webconfig file
or at the page by the 'Theme="Design1"' atribute
my skin files for my gridview wont work
because as you see here in my skin file are colums which are used to force the edit etc. function to use buttons for the edit, delete etc. commands
<asp:GridView runat="server" SkinID="GridView1" AllowPaging="True" AllowSorting="True"
BackColor="White"
ForeColor="Black" Font-Size="Small" Font-Names="Arial" Font-Bold="True" CellPadding="2">
<FooterStyle ForeColor="Black" BackColor="#C5C6C8" />
<EmptyDataRowStyle BackColor="#C5C6C8" ForeColor="Black" BorderColor="White" BorderStyle="Solid" BorderWidth="2px" />
<Columns>
<asp:CommandField ButtonType="Image" SelectImageUrl="~/Images/select.gif" ShowSelectButton="True" SelectText="Select" />
<asp:CommandField ButtonType="Image" DeleteImageUrl="~/Images/delete.gif" ShowDeleteButton="True" DeleteText="Delete" />
<asp:CommandField ButtonType="Image" EditImageUrl="~/Images/edit.gif" ShowEditButton="True" EditText="Edit" />
</Columns>
<RowStyle ForeColor="Black" BackColor="#C5C6C8" BorderStyle="Solid" BorderColor="White" BorderWidth="2px" VerticalAlign="Middle" />
<EditRowStyle BackColor="#C5C6C8" BorderStyle="Solid" BorderColor="White" BorderWidth="2px" ForeColor="Black" />
<SelectedRowStyle BackColor="#FDD78A" ForeColor="Black" BorderStyle="Solid" BorderColor="White" BorderWidth="2px" />
<PagerStyle ForeColor="Black" BackColor="#C5C6C8" BorderStyle="Solid" BorderColor="White" BorderWidth="2px" />
<HeaderStyle BackColor="Blue" ForeColor="Black" BorderStyle="Solid" BorderColor="White" BorderWidth="2px" VerticalAlign="Top" />
<AlternatingRowStyle BackColor="#929395" BorderColor="White" BorderStyle="Solid" BorderWidth="2px"
ForeColor="Black" VerticalAlign="Middle" />
</asp:GridView>
so theme="design1" and assigining a theme in the web config ignore the properties of the gridview on the page
but in this gridview there are boundfields or other columns with hyperlinkfields
and though I used 'StylesheetTheme="Design1"' to gurantee that the skins work correct and the data of the datasource is displayed
but now I wanted to let the user change styles
that I manged like here descriped:
http://forums.asp.net/t/1216191.aspx
though now its a problem, cuz the theme assigning causes the problem so that the data from the datasource in the gridview is not display
for your information : on every content page I wrote the ' stylesheettheme="design1" '
how I have to change the skin for gird views that I get the styles (with Images for edit etc. ) and the data from the datasource I want to display?
thanks