Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Using LEFT function on boundcolumn

Reply
Thread Tools

Using LEFT function on boundcolumn

 
 
Aaron
Guest
Posts: n/a
 
      04-29-2004
I have a boundcolumn in a datagrid using the following code:
<asp:BoundColumn DataField="Activity_Notes" ItemStyle-Width="25%"
HeaderText="Notes"></asp:BoundColumn>

What I would like to do is perform a left function to display only the
first 100 characters of the string found in "Activity_Notes".

I tried <asp:BoundColumn DataField="<% left(Activity_Notes, 100) %>"
ItemStyle-Width="25%" HeaderText="Notes"></asp:BoundColumn>

But that does not work.

Any ideas?
 
Reply With Quote
 
 
 
 
Aaron
Guest
Posts: n/a
 
      04-29-2004
Found it
http://aspnet.4guysfromrolla.com/articles/100202-1.aspx

Thanks,
Aaron

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Help on table align on left of page vs left hanging indent =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?= XML 2 07-16-2007 11:46 AM
Boundcolumn or TemplateField when to use Boundcolumn and when TemplateField ???? mesut ASP .Net 0 06-29-2007 10:17 AM
function call from boundcolumn tshad ASP .Net 2 07-11-2005 03:39 PM
Left panel on left hand side of desktop on windows xp wish to get rid of Bun Mui Computer Support 1 09-14-2004 03:40 AM
can't reset the left value of a DIV using document.getElementById(thisDiv).style.left = howFarLeft; lawrence Javascript 13 09-04-2004 09:07 PM



Advertisments