Reputation: 221
Is it possible to apply alternating row style in gridview column level . I have rowspan for gridview column if the values are equal . I dont alternating row style to be applied for first 2 columns alone. Can anyone help me in achieving this.
Upvotes: 1
Views: 1871
Reputation: 144
I used GridName.AlternatingRowStyle.CssClass = "grdViewAltRow";
in the c# code behind just before
GridName.Datasource = dataTable;
GridName.DataBind();
With
<style>
.grdViewAltRow {
background-color:#E8E8FF;
}
</stye>
Upvotes: 0