North West Business Intelligence Ltd North West Business Intelligence Ltd

Business Intelligence Consultancy

 
  • Increase font size
  • Default font size
  • Decrease font size
Home Technical Tips ASP.NET - Gridview RowDataBound event not firing properly

ASP.NET - Gridview RowDataBound event not firing properly

E-mail Print PDF

Another quick tip to save someone an afternoon!

When using alternating rows in a gridview, don't rely on the e.Row.Rowstate value being DataControlRowState.Edit or 4, if it's an alternate row it'll be 5 which doesn't even exist in the DataControlRowState enumeration!  So check for both values if you want to do something particular to a row that's in edit mode.

Andy

Last Updated ( Friday, 16 October 2009 14:04 )