DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 7 May 2007 14:46:22 +0200,    posted on: microsoft.public.dotnet.framework.aspnet.datagridcontrol        back       

Thread Index
  1    Stephan Steiner


varchar string not showing up in itemtemplate in a gridview   
Hi

I have your regular GridView with an SQL Data source behind it. One of the 
colums is a varchar column that the user can edit. Now if that column 
contains a string like "a < b <c < d", if you're in the Item view, all that 
can be seen is "a < b". It appears that any "word" starting with a < and 
immediately followed by another character will be suppressed. However, when 
editing an item, the full text is being shown.

Is there a way I can get the whole text to show in the label (item mode, 
rather than edititem where there's a textbox)? The field is bound via Bind() 
and the column in the gridview is a template column (if I put it into an 
autogenerated column I have the htmlencode property, which, when set to 
true, ensures the text is rendered - just minus the < in front of the c, so 
it's not a 100% solution and I need the column to be a template column 
anyway).

Does anyone have any idea how I can get my full string to show up in the 
item view in my GridView?

Regards
Stephan
Date:Mon, 7 May 2007 14:46:22 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us