473,387 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

formatting Gridview

I'm trying to format the GridView on my web form and its not working.

for money I have {0:C} and for date fields, I have {0:d} and the format
isn't changing, what else do I need to do to get the formatting working in
the gridView?

May 15 '06 #1
3 2373
I've had the same problem with GridView not taking the format command. I've
simply converted the column to a template at the formatting then works.

Peter Kellner
http://peterkellner.net
"CSharpguy" <CS*******@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com...
I'm trying to format the GridView on my web form and its not working.

for money I have {0:C} and for date fields, I have {0:d} and the format
isn't changing, what else do I need to do to get the formatting working in
the gridView?

May 15 '06 #2
Actually I got it working without doing that. I changed HTML EnCode = false
and your formatting will work
"PeterKellner" <ho****@fetchemail.com> wrote in message
news:iO********************@comcast.com...
I've had the same problem with GridView not taking the format command.
I've simply converted the column to a template at the formatting then
works.

Peter Kellner
http://peterkellner.net
"CSharpguy" <CS*******@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com...
I'm trying to format the GridView on my web form and its not working.

for money I have {0:C} and for date fields, I have {0:d} and the format
isn't changing, what else do I need to do to get the formatting working
in
the gridView?


May 16 '06 #3
thanks for letting me know! One less mystery.

"CSharpguy" <me@me.com> wrote in message
news:ux**************@TK2MSFTNGP03.phx.gbl...
Actually I got it working without doing that. I changed HTML EnCode =
false
and your formatting will work
"PeterKellner" <ho****@fetchemail.com> wrote in message
news:iO********************@comcast.com...
I've had the same problem with GridView not taking the format command.
I've simply converted the column to a template at the formatting then
works.

Peter Kellner
http://peterkellner.net
"CSharpguy" <CS*******@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com...
I'm trying to format the GridView on my web form and its not working.

for money I have {0:C} and for date fields, I have {0:d} and the format
isn't changing, what else do I need to do to get the formatting working
in
the gridView?



May 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: washoetech | last post by:
I have a gridview control. In this grid view there is a column for the price of an item. Some of the prices have a dollar sign in front of it and some dont. How do I get rid of the dollar sign...
1
by: euan | last post by:
HI Guys, I have bee using conditional formatting in the datagrid recently and I am moving over to framework 2.0 and noticed the datagrid has been replaced by the gridview. So, I would like to do...
4
by: Nalaka | last post by:
Hi, I have two questions about gridViews. 1. How can I intercept the row/column values at loading to change values? 2. After I update a row (using default update functionality), how can I...
3
by: Simon Harvey | last post by:
Hi all, I'm having problems getting my date to format. Someone told me that with the GridView, you need to use a TemplateColumn and not a BoundColumn when displaying dates. Given that, can...
4
by: Ken Wigle | last post by:
All, I would be very grateful for any help on this question. I have an application in asp.net 2.0 where I dynamically create a datatable and then bind that to a gridview. Unfortunately, the...
1
by: AmitKu | last post by:
I've got the Gridview going at full speed, and I've enabled editing, but when I click on the "edit" button, this ugly editing UI comes up. Well it's not ugly, but it's not great either. How do I...
2
by: pgonzo | last post by:
In my initial tests with the GridView control, I cannot understand why the DataFormatString attribute has no affect on the column formatting. The 'creation_date' field is being reported as "3/30/02...
0
by: Adam Sandler | last post by:
Hello, My codebehind builds a GridView at runtime and shovels the data off as a part of a callback... Dim returnstring As String = String.Empty Dim gv As New GridView gv.DataSource = ds...
2
by: tomh2099 | last post by:
Hi, Hi, I have an ASP.NET 2005 application (using VB) with a GridView control that needs to have the last 5 or 6 rows in Bold or maybe some other special formatting. Most of the rows show...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.