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


.



Relevant Pages

  • Re: disapearing gridlines in gridview
    ... That's how the browser renders a that has no content. ... And give your GridView a CssClass="Vinki" property. ... to appear all the time even if the cell is empty. ... I am showing only one template column. ...
    (microsoft.public.dotnet.framework.aspnet)
  • GridView RowCommand Not Firing
    ... I have a gridview that I bind to a Listat runtime. ... The gridview has a template column with an imagebutton whose commandname is ... however the RowCommand event does not fire. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: LinkButton Visited Link on ASP.NET Gridview Issue
    ... One of the columns of this Gridview is a template column (LinkButton). ... A given user clicks on the first row hyper link on the Grid on the first ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Gridview hyperlink column mailto event
    ... if you have added the template column in the GridView, ... intead of using the <asp:hyperlink, you can use the traditional HTML control ... > my mail client, but the selected addess is not transferred into the TO: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Validating Data in a GridView
    ... "Cowboy (Gregory A. Beamer)" wrote: ... Add a disabled dropdown, or textbox, with the value. ... >I have a gridview that uses a sqldatasource. ... When the gridview is in edit mode, one of the columns is a ...
    (microsoft.public.dotnet.framework.aspnet)

Loading