HighTechTalks DotNet Forums  

Formatting a Column in a Datagrid

Visual Studio.net (General) microsoft.public.vsnet.general


Discuss Formatting a Column in a Datagrid in the Visual Studio.net (General) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Peter Newman
 
Posts: n/a

Default Formatting a Column in a Datagrid - 06-11-2009 , 09:17 AM






VS 2005 VB.Net ( Vb.2005 )
I have a datagrid which is filled from a SQL stored procedure. I have been
trying to format the grid and have managed to sort the column headers out and
highlight rows based on a cell content.

My problem is that I have a column called "OPENBALANCE" which is a
moneyfield. Currently a value is displayed in the grid as '10.0000'. How can
I format this column to display only 2 decimal places ie '10.00'

Any help would be appricated

Reply With Quote
  #2  
Old   
Peter Newman
 
Posts: n/a

Default RE: Formatting a Column in a Datagrid - 06-12-2009 , 04:41 AM






All Sorted

"Peter Newman" wrote:

Quote:
VS 2005 VB.Net ( Vb.2005 )
I have a datagrid which is filled from a SQL stored procedure. I have been
trying to format the grid and have managed to sort the column headers out and
highlight rows based on a cell content.

My problem is that I have a column called "OPENBALANCE" which is a
moneyfield. Currently a value is displayed in the grid as '10.0000'. How can
I format this column to display only 2 decimal places ie '10.00'

Any help would be appricated

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.