|
 |
ado_dotnet thread: Formating a numeric column in a datagrid
Message #1 by "Roy W, Wellborn" <wade@p...> on Wed, 4 Dec 2002 16:01:21
|
|
Can anyone tell me how to right justify a column in a datagrid.
I have tried setting DataFormatString="{0,12:C}" or to {0,10:n2} for the
column.
I get the decimals but everything is left justified.
Thanks
Wade
Message #2 by "Brian Smith" <bsmith@l...> on Wed, 4 Dec 2002 17:38:06 -0000
|
|
If you are using DataGridTextBoxColumn ColumnStyles, then just set the
Alignment property.
brian
-----Original Message-----
From: Roy W, Wellborn [mailto:wade@p...]
Sent: Wed, 04 Dec 2002 16:01
To: ADO.NET
Subject: [ado_dotnet] Formating a numeric column in a datagrid
Can anyone tell me how to right justify a column in a datagrid. I have
tried setting DataFormatString="{0,12:C}" or to {0,10:n2} for the
column.
I get the decimals but everything is left justified.
Thanks
Wade
===
Fast Track ADO.NET with C# is a concise introduction to the concepts,
techniques, and libraries that you will need in order to start using
ADO.NET in your applications. The book covers DataSets and Typed
DataSets, accessing data using DataReaders and DataAdaptors, the close
relationship between ADO.NET and XML, how and where to use ADO.NET in
your enterprise applications, and how to use Web Services and ADO.NET to
easily pass data between applications.
http://www.wrox.com/books/1861007604.htm
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.423 / Virus Database: 238 - Release Date: 25/11/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.423 / Virus Database: 238 - Release Date: 25/11/2002
|
|
 |