PC Review


Reply
Thread Tools Rate Thread

Binding multi column values in one column

 
 
Larry R
Guest
Posts: n/a
 
      7th Jun 2007
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?

 
Reply With Quote
 
 
 
 
marss
Guest
Posts: n/a
 
      8th Jun 2007

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

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search for a value in column A and return the vaule/values in column B to column C minismood Microsoft Excel Discussion 3 10th Jan 2006 10:02 AM
Unique Values Between Two Multi-Column Lists. =?Utf-8?B?SW50ZXJuIElhbg==?= Microsoft Excel Misc 0 9th Nov 2005 09:04 PM
returning values multi column listbox =?Utf-8?B?R2VvcmdlRkQyOQ==?= Microsoft Excel Programming 4 17th May 2005 01:23 PM
Multi column listbox from combobox values christobal Microsoft Excel Programming 3 26th Mar 2004 04:23 PM
Extract values from a multi-select multi-column list-box Peter Microsoft Excel Programming 5 28th Sep 2003 04:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:54 AM.