Hi,
I can use a usercontrol as a ItemTemplate for a GridTemplateColumn:
Dim gct As New GridTemplateColumn |
With gct |
.HeaderText = "Schema" |
.DataField = "Name" |
.ItemTemplate = LoadTemplate("~/DynamicData/FieldTemplates/Text_List.ascx") |
End With |
GridView1.MasterTableView.Columns.Add(gct) |
In my usercontrol in the DataBinding event (or elsewhere) i can find the DataBindingContainer and NamingContainer and find all the data i need, but:
How do i know, in the usercontrol, that I've bound it to the datafield "name"? When using the template for more columns I have to know that...
Thanks in advance.
Erik