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
Mata
NA
46
34.6k
SOLVED : Even rows on edit command (gridview) are marked as HeaderRow
Dec 4 2011 5:16 AM
Is this behavior normal?
Odd rows on edit command are identified acordingly in RowDataBound event. Even however are marked as Row.Type= Header.
EDIT.
I built simple example for debugging, but on this one, for both rows (first and secound) rows are identified as Header in RowDataBound Event (attached)
... so now I'm totally confused. And I ask myself what event can get me access to row which is RowType=DataRow and RowState=Edit, now I'm starting to doubt that there's no such thing :)
This is solution for question edit mode of row in gridview ( I was completely wrong about functionallity of RowDataBound event. Now it is much more clear.
RowDataBound(object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.RowState == (DataControlRowState.Edit | DataControlRowState.Alternate)) || (e.Row.RowState == DataControlRowState.Edit)
{
// EDIT MODE
}
}
}
Attachment:
testwebsitefull.zip
Reply
Answers (
0
)
where i find html editor control for visual studio 2005
Bulk insert from gridview to database