Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ASPxGridView - How to copy an alternative row style to the preview row for a grouped grid

$
0
0

For this task, handle the ASPxGridView.HtmlRowPrepared event to add the required CSS class for the alternating preview rows:

[C#]
boolisPrevRowIsAlterRow;protectedvoidgrid_HtmlRowPrepared(objectsender,DevExpress.Web.ASPxGridViewTableRowEventArgse){if(e.RowType==GridViewRowType.Data){isPrevRowIsAlterRow=e.Row.CssClass.Contains("dxgvDataRowAlt");}elseif(e.RowType==GridViewRowType.Preview){if(isPrevRowIsAlterRow)e.Row.CssClass+=" previewRowAlt";}}

Viewing all articles
Browse latest Browse all 7205

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>