Click here to Skip to main content
15,914,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please help to solve this question..
Posted

hi,

hv a look at te below article:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdatabound.aspx[^]

hope it helps.

regrds
anurag
 
Share this answer
 
RowDataBound - Is event getting called for each row in grid when data is binding to that row.
This include your header also.

You can use this event to get the data values at the time of binding & apply your logic.
For Ex. If there is requirement that if for perticular column values is greater than 50 render the value with RED & BOLD font.

You should be very carefull using this event because large amount of data will cause performance issue as the event will be called for every row & if you add logic to be performed on every row.. it will require more time...

Below link will provide you more details:-


http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.onrowdatabound.aspx[^]
 
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