By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,683 Members | 1,597 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,683 IT Pros & Developers. It's quick & easy.

Binding multi column values in one column

P: n/a
Asp.net 2.0. Binding a Gridview. UNtil now, it had been simple
BoundColumns, but now I need to have one column show the values of 3
columns ( they are in the same datasource).

I thought that I should just be able to use a template sucha as :

<asp:TemplateField d>
<HeaderTemplate><asp:Label runat=server>Test</
asp:Label></HeaderTemplate>
<ItemTemplate>
<asp:Label runat=server><%Eval("F");%>//<%Eval("M");
%<%Eval("L"); %></asp:Label>
</ItemTemplate>
</asp:TemplateField>

but that didn't work out.

Any suggestions?

Jun 7 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Larry R wrote:
Asp.net 2.0. Binding a Gridview. UNtil now, it had been simple
BoundColumns, but now I need to have one column show the values of 3
columns ( they are in the same datasource).

I thought that I should just be able to use a template sucha as :

<asp:TemplateField d>
<HeaderTemplate><asp:Label runat=server>Test</
asp:Label></HeaderTemplate>
<ItemTemplate>
<asp:Label runat=server><%Eval("F");%>//<%Eval("M");
%<%Eval("L"); %></asp:Label>
</ItemTemplate>
</asp:TemplateField>

but that didn't work out.

Any suggestions?
Hi,
You miss # in data binding expression.
Correct <%# Eval("F") %and so forth.
Regards, Mykola
http://marss.co.ua

Jun 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.