TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Arvind Yadav
NA
49
157.5k
How to genrate dynmic class to each row of gridview in asp.n
Sep 13 2013 6:43 AM
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
Reply
Answers (
1
)
IMPORT EXCEL TO DATASET AND TO SQL TABLE
Json XmlDocument serialization