Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB.NET
how to display Only Date in datagridview windows.forms

DataGridView


     
Date
1
2
3
4
5
6
7

.
.
.
31
Posted
Comments
dan!sh 5-Jan-16 0:48am    
Are you doing any kind of data binding? Update your question with relevant code.
Sinisa Hajnal 5-Jan-16 4:36am    
What are you trying to do? Do you mean you want to display only DAY part of the date in your grid?

1 solution

This assumes you're trying to display day part of the date in the column.

Check column properties, there is Format property. Set "d" there and you'll get default date for your culture. Set dd and you'll get the day part.

Good luck.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900