Thanks for the reply, but I think you are misunderstanding what I am
trying to do.
Say you have a datagrid. You can put a textbox into the ItemTemplate
for a row of the datagrid, and bind the "Text" property of the textbox
to the datasource.
This is what I want to do, but instead of using a textbox and "Text" I
want to use my ASCX control and "TextStatic", but when I put my ASCX
into the item template and go into the Bindings dialog, there are no
values that I can select to assign for binding (Such as "Text" or
"TextStatic").
Does that make sense?
Natty Gur <na***@dao2com.com> wrote in message news:<uO**************@TK2MSFTNGP11.phx.gbl>...
HI,
First, I don?t think that usercontrol should serve as datasource. It?s
better to create dedicate class as the dataprovider. Anyway in order to
supply data to datagrid your class should implement the
System.Collections.IEnumerable interface.
Natty Gur[MVP]
blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!