Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A formatting mask in a datagrid column

Status
Not open for further replies.

trimtrom

Programmer
Dec 12, 2003
35
0
0
GB
Hello,

I am a beginner programmer using VB6. I want to apply a date format mask to a column in a datagrid control. Is this possible? I tried the dataformat property and a stddataformat object with no luck. Help!!

Many thanks,
Trimtrom
 
Try
Code:
DataGrid1.Columns(n).NumberFormat = "MMM dd yyyy"
where 'n' identifies the column number that you're trying to format.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top