473,287 Members | 1,659 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,287 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 2371
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.