tags:

views:

31

answers:

1

What is Container.DataItem exactly?

+1  A: 

Check this article might help you understand -

http://www.jstawski.com/archive/2007/11/13/container-dataitem-what-exactly-is-this.aspx

Help on when to use -

http://weblogs.asp.net/rajbk/archive/2004/07/20/what-s-the-deal-with-databinder-eval-and-container-dataitem.aspx

Sachin Shanbhag
when do we use container.dataitem......a good example
Chandan Khatwani
@chandan - Added another link which you can refer to see when to use.
Sachin Shanbhag
what does the current item in the datasource exactly mean?
Chandan Khatwani
@chandan - Well, if its an array of string {'a','b','c'}, then currentitem is the one which is currently processing. It could be a,b or c at that point of time. Does this answer your question?
Sachin Shanbhag
do you mean the current item which is being processed at runtime to bind a particular dataitem from a datasource.
Chandan Khatwani
@Chandan - yes exactly.
Sachin Shanbhag
thank you so much Sachin
Chandan Khatwani