Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Mike Chamberlain #1
Container
Can someone explain what the Container object is, and how it it related
to data binding? I can't find any reference for it anywhere.
Mike
Mike Chamberlain Guest
-
CSS Clear within container only
I have a 3 column design with the lfet and right columns floated and the center ones margins set to avoid the floats. I want to float something... -
Naming container
I'm having a problem with a linkbutton which is not assigned a UniqueID with all the prefixes for some reason. The linkbutton resides in a... -
FXRuby and OLE container ?
This is a multi-part message in MIME format. ------=_NextPart_000_0397_01C36250.A5A0A420 Content-Type: text/plain; charset="iso-8859-1"... -
[PHP] Container functions....
Justin: Not ColdFusion - ancient language by Brian Fox called MetaHTML - actually a VERY good language - just not supported or developed anymore... -
Container functions....
In a language that I used to program in - for development we used to be able to make a function that basically just executed everything inbetween:... -
Brock Allen #2
Re: Container
When you write DataBinding syntax a method is created that gets called for
every row that will be created for your databinding control. Container is
a local variable in that method which is a reference to the row in the control
that was just created. DataItem is typically the property on the row object
that references the row from the original data source that the row is built
from.
A great way to understand what's going on is to do this:
<ItemTemplate><%# Container.DataItem.GetType().FullName %></ItemTemplate>
This will emit the type of object Container is. For different data bound
controls you'll see different output. Once you know the Container type, then
go look up in the docs about it.
-Brock
DevelopMentor
[url]http://staff.develop.com/ballen[/url]
> Can someone explain what the Container object is, and how it it
> related to data binding? I can't find any reference for it anywhere.
>
> Mike
>
Brock Allen Guest



Reply With Quote

