2 Replies - 4179 Views - Last Post: 14 December 2011 - 05:22 AM

#1 mattador  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-December 11

problem even rows on edit command are marked as Header (gridview)

Posted 04 December 2011 - 06:06 AM

When I click edit button in even rows in gridview.
On RowDataBound event my row is identified as RowType Header. This is a problem cause I can't access cells in edit mode (editTemplateItem) of specific row. This is strange cause for odd rows everything works ok, Rows are identified as RowType DataRow. Is this normal behaviour?
Is This A Good Question/Topic? 0
  • +

Replies To: problem even rows on edit command are marked as Header (gridview)

#2 mattador  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-December 11

Re: problem even rows on edit command are marked as Header (gridview)

Posted 04 December 2011 - 09:25 AM

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)

Attached File  TestWEbsitefull.zip (270.94K)
Number of downloads: 53
Was This Post Helpful? 0
  • +
  • -

#3 Nakor  Icon User is offline

  • Professional Lurker
  • member icon

Reputation: 441
  • View blog
  • Posts: 1,488
  • Joined: 28-April 09

Re: problem even rows on edit command are marked as Header (gridview)

Posted 14 December 2011 - 05:22 AM

hmm, not sure why you would be seeing it like that. When I run the code you provided the rows are identified as DataRows.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1