Click here to Skip to main content
15,671,597 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all,
just i want to in which scenario we use
"Row DataBound Control,Row created Control in gridview" .
please provide some information regarding that.

Hi there,
RowDataBound: This event is called when every row is filled by data from your datasource (DB, Model, Object, Web service, etc).[^]

RowCreated: This event is created when your row is created on your gridview control. Just before databound.[^]

Hope you find this helpful.
Share this answer
Before the GridView control can be rendered, each row in the control must be bound to a record in the data source. The RowDataBound event is raised when a data row is bound to data in the GridView control.
Refer -> MSDN : GridView.RowDataBound Event[^]


Before the GridView control can be rendered, a GridViewRow object must be created for each row in the control. The RowCreated event is raised when each row in the GridView control is created. This enables you to provide an event-handling method that performs a custom routine, such as adding custom content to a row, whenever this event occurs.
Refer -> MSDN : GridView.RowCreated Event[^]

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