Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: how to format a datagrid column


Message #1 by "Microsoft Mails" <blessedsoul@s...> on Thu, 19 Sep 2002 10:33:29 +0530
You can give the date format pattern to the NumberFormat property of the
current DataGrid column. Syntax :
     <dataGridObject>.Columns(<columnIndex>).NumberFormat = "dd mmm yyyy"
(if you want to format date like 09/12/2002 to 09 September 2002)
You can give the format pattern whatever supported by the format function

> -----Original Message-----
> From:	Microsoft Mails [SMTP:blessedsoul@s...]
> Sent:	Thursday, September 19, 2002 12:03 PM
> To:	professional vb
> Subject:	[pro_vb] how to format a datagrid column
> 
> Hi guys
> 
> i wanted to know how do we format the column in a datagrid .. may be a
> date format
> 
> thanx
> 
> 
> 
> ---
> Visual C# - A Guide for VB6 Developers
> This book will make it easy to transfer your skills 
> from Visual Basic 6 to C#, the language of choice 
> of the .NET Framework.
> http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059
> 

  Return to Index