Hi Joey,
Thank you for using MSDN Newsgroup. I am Luke and I am review this issue
currently. From your description, you want to format the output in a
datagrid, for example, from 27.0800000 to 27.08. The data is retrieve from
a database.
Regarding the question, if the database is SQL server, I think the easiest
way is doing with the underlying SQL statement, for example:
select CONVERT(decimal(15,2), DecColumn) as DecimalField from Table1
As you the Convert function in SQL server can format the decimal column
with 2 bits scale. We only need to modify the SelectCommand of the
DataAdapter like this.
Hope this help,
Luke
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)