What is ASP.Net GridView OnRowDataBound Event when it is used and how

Last Reply on Jun 06, 2013 01:46 AM By Mudassar

Posted on Jun 06, 2013 01:44 AM

What is GridView Event "RowDataBound" ?

When it is used ? And How ?

Please explain it Briefly with some exaple..

Posted on Jun 06, 2013 01:46 AM Modified on on Jun 06, 2013 01:47 AM

RowDataBound event is called for each GridView Row after it is supplied data.

You can use it when you want to perform Rowwise Operation, like changing color of Row based on some condition

Dynamically change GridView Row Background Color based on condition in ASP.Net using C# and VB.Net