[Mono-dev] Problem with AlternatingRowStyle in GridView

Johann BLAIS jblais at perinfo.biz
Tue Aug 23 10:36:52 EDT 2005


Hi all,

I'm using the GridView control to display some data. When i set the 
RowStyle->CssClass and AlternatingRowStyle->CssClass property, a problem 
occurs in the generated code.
The lines contains two class tags with the value specified in the 2 
properties.
For example :
<asp:GridView runat="server" ID="ListeDossiers" GridLines="Vertical" 
AutoGenerateColumns="false" OnRowCommand="ListeDossier_Command">
       <HeaderStyle CssClass="ligne_header" />
       <RowStyle CssClass="ligne1" />
       <AlternatingRowStyle CssClass="ligne2" />
       <Columns>
       ...
       </Columns>
</asp:GridView>

The first line is generated as <tr class="ligne1"> stuff </tr>.
The second one is generated as <tr class="ligne1" class="ligne2"> stuff 
</tr>

Should i file a bug for this ?

Thanks,
Johann Blais.



More information about the Mono-devel-list mailing list