473,387 Members | 1,624 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.

datagrid formatstring

ammoos
100 100+
Hi friends

I need to format the datagrid columns in many ways

1)In first column, values are to be displayed as integers with no
decimal places and the thousands separator is ‘.’

2)In second column, values are to be displayed to two
decimal places and the decimal separator is ‘,’

3)In third column, the values must be displayed with the + or – symbol eg:+234,-12 like that.

Pls help me
Nov 1 '07 #1
0 826

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Andreas Klemt | last post by:
Hello, when I do this FormatString("3333.50", "{0:N2}") I get: 3.333,50 What to do to get this: 3333.50 (without a dot) Thanks, Andreas
2
by: Ravikanth[MVP] | last post by:
Hi asp:DataGrid id="YourID" runat="server" AutoGenerateColumns="False"> <Columns> <asp:TemplateColumn HeaderText="Sample Column"> <ItemTemplate> <asp:Hyperlink runat="server" Text='<%...
0
by: Souri Challa | last post by:
Is there a simple way to set the datagrid footer columns format strings to be the same as the bound column data format string ? Thanks, Souri
5
by: Franck Diastein | last post by:
Hi, I'm binding a DataRead (obtained from a mssql SP)to a DataGrid, and one of the values is a date... The problem is that date is shown as dd/mm/yyyy hh:mm:ss and I would like to format it...
1
by: Jeremy | last post by:
I am displaying a boolean field in a grid & want to format it Yes/No. Can someone tell me what the formatstring for this is? That is, DataGridTextBoxColumn.Format = ?? Jeremy
3
by: JJ | last post by:
I want to display a number as 3 digits, i.e.: '3' would appear as '003' '45' would appear as '045' I just wondered whether you could do this with a format string: <asp:Label...
0
by: timnels | last post by:
I wanted to created a formatted label control. I know I can add a property to hold the FormatString, but I am not sure what method to override to do the formatting. Any ideas?
0
by: LieWait | last post by:
I wanted to created a formatted label control. I know I can add a property to hold the FormatString, but I am not sure what method to override to do the formatting. Any ideas?
1
by: =?Utf-8?B?V2VzdGU=?= | last post by:
I am trying to format a social security number displayed on a Win form. The text box that holds the ssn is bound to a data set. I tried the code below in the form's OnLoad event; however, it...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.