Hi Friends,
I want to genrate dynamic class to each row of gridview of asp.net. like if header row then i am giving class = "hdr" to header row. and if row is datarow then i want to give "chk" to each datarow. because using this class i m writing some code. but this class of gridview is not genrated. my code on GridvViewRowDataBound is like,
If e.Row.RowType = DataControlRowType.Header Then
e.Row.CssClass = "hdr"
End If
If e.Row.RowType = DataControlRowType.Datarow Then
e.Row.CssClass = "chk"
End If
How to genrate dynmic class to each row of gridview in asp.n
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Suthish NairRank #92 · 22.8K reputationPosted Sep 13, 2013, 4:59 AM EDT