Group29.com - What did you expect?
  Create an account
:: Home  ::  Downloads  ::  Your Account  ::  Forums  ::
Google Adsense
Modules
· Home
· AutoTheme
· Downloads
· ExpectationReviews
· Forums
· Group29 FAQ
· MovieReviews
· OtherReviews
· Stories Archive
· Submit News
· Top 10
· Topics
· Web Links
New at Group29
·The 2010 Rose Bowl broadcast
·Gridview problem DataFormatString not working Visual Studio
·Apple iPhone vs. Samsung Saga SCH-i770 Windows Mobile 6.1 comparison
·Girl Scout Cookies 2009: Salmonella and Anti-Semitism?
·UCLA vs USC Preview December 6, 2008
·Visual Basic to C# tricks, #Develop (SharpDevelop)
·Should I sign the back of my credit card?
·The Web Site is Down surface psychoanalysis
·Matchbox Superfast 2008 new models available!
·Incorrect Syntax near nvarchar SQL Server VB.NET

read more...
TheForce.Net
·The Force Unleashed II Live Demo From PAX
·Verizon's R2-D2 Droid 2 Is Official
·Gearing Up For The Clone Wars Season 3
·ESPN's Admiral Ackbar-Inspired Commercial
·SUVUDU Provides Full Novel Timeline PDF
·DCSWCC Picnic To Celebrate Their 7th
·Happy Labor Day
·Dark Horse Tributes McQuarrie
·Star Wars Grand Florida Alliance Oct. Event
·Star Wars: Mandorla By Alex Irvine

read more...
LA Times most emailed
·Food trucks are rolling into the mainstream
·Weekend brunch: Seven L.A.-area restaurants that are doing it right
·With 'Hereafter,' Clint Eastwood contemplates what's next
·Eureka's future could hinge on dormant pulp mill
·L.A. County child welfare official falsified death reports, two staffers claim
·Clinton says Mexico drug wars starting to look like insurgency
·Where's the outrage over immigrant slayings in Mexico?
·UCLA's Anderson School aims to fund itself
·Top officials in Vernon traveled lavishly at city expense
·California regulators seek up to $9.9 billion in fines from PacifiCare

read more...
Hot trends
·marvin sapp
·here you have virus email
·tom brady car accident
·lfo singer dies
·vikings vs saints
·rich cronin died
·nick o leary
·lina morgana
·lfo summer girls
·matt barnes arrested

read more...
 Gridview problem DataFormatString not working Visual Studio
What do we know?
There is a bug in older versions of the .NET 2.0 framework used for Visual Studio 2005. Even if you have a DataFormatString in your Gridview object, the column may still not format. This article has been promoted from the Group29 Forums Article Gridview problem DataFormatString not working Visual Studio


The workaround is to add the code

Code:
HtmlEncode ="false" 


to that column

When HtmlEncode is on, the data is retrieved from the data store, Html Encoded, and then the format string is applied. By HtmlEncoding the value from the data store, the framework protects unsafe script from the data store from being displayed to the client.

I have observed this in the RTM versions of .NET 2.0 2.0.50727.42, as well as .NET 2.0 with security updates including 2.0.50727.832.*

The problem does not occur in the SP1 version of .NET 2.0 (2.0.50727.1433). This SP1 came with the .NET framework 3.5. Apparently this also did not occur in the beta version of .NET 2.0.


Sample Search phrases used to find this article

.dataformatstring
.dataformatstring within code
.net 3.5 dataformatstring not working
.net 3.5 gridview boundcolumn dataformatstring property
.new dataformatstring
2.0.50727.42 dataformatstring
asp gridview dataformatstring telephone number
asp.net dataformatstring limit string length
cannot use dataformatstring with gridview
dataformatstring
dataformatstring%3d
dataformatstring - visual c
dataformatstring boundfield gridview cannot delete different type
dataformatstring convert seconds to minutes and seconds
dataformatstring currency millions
dataformatstring custom format credit card .net
dataformatstring date gridview problem
dataformatstring does not work in sp1
dataformatstring en gridiew
dataformatstring en visual studio 2005
dataformatstring for hours in grid view
dataformatstring gmt local
dataformatstring gridview
dataformatstring gridview link
dataformatstring gridview not format
dataformatstring gridview not working
dataformatstring gridview not working vs2008
dataformatstring in gridview
dataformatstring link encoded
dataformatstring miles km
dataformatstring not working .net 2.0
dataformatstring not working in gridview even if htmlencode%3d false
dataformatstring of a grid view
dataformatstring problem
dataformatstring semicolon
dataformatstring value gets updated to few columns not to the others
dataformatstring visual basic 2005
dataformatstring visual studio
dataformatstring visual studio 2005
dataformatstring visual studio 2008
dataformatstring year
framework sp1 problem dataformatstring
grid view dataformatstring problem
gridvew dataformatstring
gridview dataformatstring
gridview dataformatstring %3cpre%3e
gridview dataformatstring edit
gridview dataformatstring not work 3.5
gridview dataformatstring not working vs 2008
gridview dataformatstring semicolon
gridview format string dataformatstring
gridview htmlencode%3d false dataformatstring%3d not formatting
dataformatstring not working
number dataformatstring gridview
reader dataformatstring
sp1 framework dataformatstring
studio dataformatstring
visual basic gridview dataformatstring
visual studio 2005 dataformatstring
visual studio 2005 gridview dataformatstring
visual studio dataformatstring
visual studio dataformatstring in grid view
visual studio dataformatstring not working
visual studios 2008 dataformatstring
vs2008 gridview boundcolumn dataformatstring property htmlencode false not working
why is the dataformatstring not working

  
Posted on Monday, February 02 @ 10:24:42 PST by BB
 
Related Links
· Microsoft Support
· Google is your friend
· Group29 Tech Tips Forum
· More about What do we know?
· News by BB


Most read story about What do we know?:
Failed to execute request because the App-Domain could not be created.

Article Rating
Average Score: 3
Votes: 2


Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad

Options

 Printer Friendly Printer Friendly

"Gridview problem DataFormatString not working Visual Studio" | Login/Create an Account | 0 comments
The comments are owned by the poster. We aren't responsible for their content.

No Comments Allowed for Anonymous, please register
Group29 Productions

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest (c) 2006 by Group29 Productions.


You can syndicate Group29 Productions news with an RSS Feeder using the file backend.php


PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 1.27 Seconds

:: HeliusGray phpbb2 style by CyberAlien :: PHP-Nuke theme by www.nukemods.com ::