Which event is fired when data bind is done to datalist control in asp.net

Posted by Rajendra.prasad under ASP.NET on 4/15/2011 | Points: 10 | Views : 3200 | Status : [Member] | Replies : 1
Hi All,

Which event is fired when data bind is done to datalist control in asp.net before the output is rendered to the user/browser.

Regards,
Rajendra Prasad




Responses

Posted by: Umeshdwivedi on: 4/15/2011 [Member] Starter | Points: 25

Up
0
Down
Dear Rajendra

When data is bound to a DataList, either from a data source control or through programmatically assigning data to the control s DataSource property and calling its DataBind() method, the DataList s DataBinding event fires, the data source enumerated, and each data record is bound to the DataList. For each record in the data source, the DataList creates a DataListItem object that is then bound to the current record. During this process, the DataList raises two events:
1-ItemCreated fires after the DataListItem has been created
2-ItemDataBound fires after the current record has been bound to the DataListItem

For more information pls read this articals http://www.asp.net/data-access/tutorials/formatting-the-datalist-and-repeater-based-upon-data-cs


Latest Technology Trainer
And Part time software consultant

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response