Click here to Skip to main content
15,924,982 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
why id the row databound event of a gridview is used...


can anyone explain this peace of code?? i don't know that what is it doing..

C#
if (e.Row.RowType == DataControlRowType.DataRow)
Posted

1 solution

It basically checks the DataControlRowType of the row. There are 6 DataControlRowTypes. You can check them here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900