HighTechTalks DotNet Forums  

varchar string not showing up in itemtemplate in a gridview

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss varchar string not showing up in itemtemplate in a gridview in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Stephan Steiner
 
Posts: n/a

Default varchar string not showing up in itemtemplate in a gridview - 05-07-2007 , 08:46 AM






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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.