Normally i think we cannot data to template columns, but there is an
other way around ... like you can write script to bind a DATAFIELD to
the Textbox in the Header Template.
ex:
....
<HeaderTemplate>
<input type=text value='<%#
DataBinder.Eval(Container.DataItem,"DATAFIELD").ToString())%>'
</HeaderTemplate>
....
DATAFIELD can be any field in the DATASOURCE bound to the DATAGRID.
Can we actually bind data to a header template of a
datagrid in a item template?
i have tried in the way given below but it is not
working .
Please suggest me some other way.
Thank you
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.