Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataBinding
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00845808
Message ID:
00845821
Views:
16
>The other thing to remember is that you can bind to template controls. So you can stick databound textboxes or labels into the ASPX templates, but then again it gets tricky to bind them as you have to keep track of the rows in the DataView. I think the cleanest way to do what you want is via event hooks or by using custom expressions that call methods with the current binding.
>

Ok, I've used and bound to template controls (just to make sure, you mean a DataList using Item Template etc), or am I calling them the wrong name. I mean, I have used templated columns, because of all the formating, and custom controls I want to bind to inside of a Datalist or DataGrid. What events hook would I need to look into? And do you have any samples or places to look to get a little more information about this?

I mean, I have bound inside of template controls
<ItemTemplate> 
  <cc1:MyLabel Text='<%# DataBinder.Eval(Container.DataItem, "mycolumn") %>'></cc1:MyLabel>
</ItemTemplate>
But, I don't really want to put the column name inside of the aspx, I want to get ahold of the control at run-time and bind it that way. I haven't been able to get the instance of the control for binding, I think the event hooks might work, but what events would i need to look into.


Morgan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform